Search found 33 matches: serialize

Return to advanced search

Re: Convert

Dear Rao, Just out of curiosity, I haven't really delved into the question yet. But would JSON encode and decode also be an option? Best regards, Otto Even to encode into Json, we first need to convert the codeblock into a "text" string. How? The only function available is HB_Serialize( b...
by nageswaragunupudi
Thu Sep 07, 2023 5:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Convert
Replies: 7
Views: 527

Re: Convert

If the purpose is to save the string and restore later for execution:   b := { || MsgInfo( "Good" ) }   Eval( b )   c := HB_Serialize( b )   ? ValType( c ), Len( c ), STRTOHEX( c )   // s...
by nageswaragunupudi
Wed Sep 06, 2023 1:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Convert
Replies: 7
Views: 527

Re: Is hb-serialize() compatible between xHb & Harbour

Thanks Karinha.
I'll go through them
by hua
Sat Dec 18, 2021 5:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is hb-serialize() compatible between xHb & Harbour
Replies: 2
Views: 431

Re: Is hb-serialize() compatible between xHb & Harbour

Look, https://groups.google.com/g/harbour-devel/c/2mN46SSAEPs https://github.com/FiveTechSoft/xHarbour/blob/master/source/rtl/hbserial.prg https://github-wiki-see.page/m/Petewg/harbour-core/wiki/hb_D http://forums.fivetechsupport.com/viewtopic.php?f=3&...
by karinha
Fri Dec 17, 2021 12:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is hb-serialize() compatible between xHb & Harbour
Replies: 2
Views: 431

Is hb-serialize() compatible between xHb & Harbour

Guys,
Anyone with experience or knowledge that knows whether hb-serialize()/hb_deserialize() is compatible or not between Harbour's and xHarbour's version? Tq
by hua
Fri Dec 17, 2021 7:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Is hb-serialize() compatible between xHb & Harbour
Replies: 2
Views: 431

Re: An advice needed to save same variables and its value to mem

field->memo := hb_serialize( aVars )

...

aVars := hb_deserialize( field->memo )
by Antonio Linares
Tue Dec 29, 2020 4:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: An advice needed to save same variables and its value to mem
Replies: 7
Views: 840

Re: funciones de FWH y Harbour en un archivo .txt

__clsVerify(<nClassH>)-><acBrokenMessages>|Nil __objAddData(<oObject>,<cDataName>)->oObject __objAddInline(<oObject>,<cInlineName>,<bInline>)->oObject __objAddMethod(<oObject>,<cMethodName>,<nFuncPtr>)->oObject __objDelInline(&l...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5627

Re: funciones de FWH y Harbour en un archivo .txt

__clsVerify __objAddData __objAddInline __objAddMethod __objDelInline __objDelMethod __objDelMethod __objDerivedFrom __objGetMethodList __objGetValueList __objModInline __objModMethod __objSetValueList __Pack __Run __Zap AAdd Abs AChoice AClone ACopy ACos AddASCII AddMonth ADel ADir ADSBlob2File ADS...
by carlos vargas
Sat Oct 21, 2017 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5627

Re: Grabar un objeto

Harbour, ese gran desconocido, tiene dos funciones a tal fin: hb_Serialize() y hb_Deserialize()   HB_SERIALIZE( <xData>, [ <lNumSizes> = .F. ], ;                  [ <cCdpIn> = HVMCP ], [ <cCdpOut> = HVM...
by hmpaquito
Thu Jul 06, 2017 11:33 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Grabar un objeto
Replies: 5
Views: 805

Re: ADO and hb_serialize()

All,

There is a MimeClip.prg in my \\fwh\source\function directory, seems to have two functions:

fMimeDec()
fMimeEnc()

Would this help?

Byron ...
by byron.hopp
Mon Oct 19, 2015 3:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO and hb_serialize()
Replies: 10
Views: 1442

Re: ADO and hb_serialize()

James,


(De) / Encode a string to MIME.
by AHF
Sat Oct 10, 2015 5:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO and hb_serialize()
Replies: 10
Views: 1442

Re: ADO and hb_serialize()

Great news!

What does CHIMEDEC() do?

James
by James Bott
Sat Oct 10, 2015 3:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO and hb_serialize()
Replies: 10
Views: 1442

Re: ADO and hb_serialize()

James,

This seems to work.

Code: Select all  Expand view

FUNCTION HB_SERIALIZE( aArray)
RETURN CMIMEENC( ASAVE( aArray ) )

FUNCTION HB_DESERIALIZE( xArray )
RETURN AREAD( CMIMEDEC(  xArray ) )
 
by AHF
Sat Oct 10, 2015 3:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO and hb_serialize()
Replies: 10
Views: 1442

Re: ADO and hb_serialize()

James,

I need to save an array of strings or numbers.

I tried convert it to base64 it saves but then I cant load it again.

Any ideas?
by AHF
Sat Oct 10, 2015 1:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO and hb_serialize()
Replies: 10
Views: 1442

Re: ADO and hb_serialize()

I still see a special character in the second position. I don't know enough about SQL to know if that is an issue.

When I said something simple I meant REALLY simple. How about an array of three characters? E.G. A,B,C.

James
by James Bott
Fri Oct 09, 2015 8:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO and hb_serialize()
Replies: 10
Views: 1442
Next

Return to advanced search