> What is wrong with this line :- > > IF sElement[iLoop] = NULL THEN sElement[iLoop] = "0" > > I want to catch a null character and change it to "0".
Just as a summary: NULL is NULL, a special constant (like TRUE or FALSE), that is the default value of Variant, String, Date and Object datatypes. In Gambas, NULL and "" (the void string) are the same thing. Maybe you can find that confusing, but that makes a lot of code simpler to write. But the "null" character is a bad name for Chr$(0), i.e. a byte in memory inside a string whose value is zero. So, Chr$(0) <> NULL ! -- Benoît ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user