Hi Friends!!
How do I convert a multidimensional array to hash?
Compatible with Json format?
Develop a code but I think it is not fully compatible
Example
AData: = {{"Fecha", "S"} ,;
{"Poliza", "S"}
.....
.... }
And how do I record it to a .jsn file?
Develop a code but I think it is not fully compatible
FUNCTION fWriteHash(aData)
aJSonFormat:= hb_Hash( aData)
hb_MemoWrit("C:\data\myfile.jsn", aJSonFormat)
RETURN
the result is
[["Fecha","S"],["Póliza","S"],["Tipo Póliza","S"],["Total","S"],["Cerrado","S"],["Mayorizada","S"],["Cuadrada","S"],["Facturas","S"],["P","S"],["M","S"],["C","S"],["F","S"],["Tipo Doc.","S"],["Cuenta","S"],["Proyecto","S"],["No. Doc","S"],["Descripción","S"],["Id","S"]]
Thanks
Henry Herrera