Ron,

> Can anyone explain why should NIL not be a valid value?

All values saved to XML by using TXmlDocument class have to be strings, or
it'll GPF. So, as every value have to be converted into a string, a Nil
value becomes the same than an empty string (or any special string, like
"Nil").

In the previous case, I was wrong, and neither .F. not 0 could be saved to
XML. But a string with only spaces or tabs does, and it was not working
before.

IMO, a reasonable way to make the class to work in all cases is to convert
all values to strings internally, avoiding GPFs or RTEs. The same way that
many of us did with .ini files or windows' registry. Later, when a program
reads the data, it has to reconvert the values to the needed type, but it's
its problem  ;-)


Regards,

Jose F. Gimenez 


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to