Convert
Posted: Wed Sep 06, 2023 12:24 pm
Hi,
I need to convert a block of code ({||}) to a string. How can I do this?
I need to convert a block of code ({||}) to a string. How can I do this?
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=43678
b := { || MsgInfo( "Good" ) }
Eval( b )
c := HB_Serialize( b )
? ValType( c ), Len( c ), STRTOHEX( c )
// save the string as hex and restore
b := HB_DeSerialize( c )
? Eval( b )
Otto wrote: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