FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour DBF TO Hash [SOLUCIONADO]
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
DBF TO Hash [SOLUCIONADO]
Posted: Fri Jul 30, 2021 03:22 AM
Estimados

Alguna funcion que pase de dbf a Hash para la web

algo asi pero no me funciona

Code (fw): Select all Collapse
Temp->( dbEval( { || aadd( aRows,{;
                                                    { "tipo"     => Field->tip_doc },;
                                                    { "numdoc"   => Field->num_doc },;
                                                    { "total"    => trans(Field->total,"@E 999,999,999")   },;
                                                    { "hora"     => Field->horingreso}} ) } ) )


pd. estoy recién viendo el tema de hash:-(
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
Posts: 1074
Joined: Fri Oct 07, 2005 01:56 PM
Re: DBF TO Hash
Posted: Fri Jul 30, 2021 04:14 AM
Era en una sola linea ahi esta el error

solucionado :-)


Code (fw): Select all Collapse
    Temp->( dbEval( { || Aadd( aRows, { 'tipo'      => Field->tipo,;
                                               'numdoc'    => Field->num_doc,;
                                                'total'     => trans(Field->total, "999,999" ),;
                                            'hora'      => Field->horingreso } ) } ) )
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl

Continue the discussion