On Fri, 29 Jan 2010, Shum wrote:

Hi,

> I want to ask for var2str(...) and str2var(...) pairs functions (something
> that in Xbase++) for harbour 
> Or does it already there in harbour ?

   cData := hb_serialize( xData )
   [...]
   xData := hb_deserialize( cData )

If you need human readbale form for serialized data then you can use

   cExp := hb_valToExp( xData )
   [...]
   xData := &cExp

but it's much slower needs more memory and does not support all extensions
whichb exists in hb_serialize()/hb_deserialize()

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to