[Gambas-user] Questions about string

Wellington de Souza Pinto wspinto at ...1405...
Wed Jul 18 20:08:05 CEST 2007


Hi Benoit!

I'm using gambas2-49 and in my program have one function:

private function myfunc(optional aItem as variant = null) as boolean
   if isnull(aitem) then
      return true
   else
      return false
   endif
end

The call:

print myfunc()       -> true
print myfunc("")     -> true
print myfunc("1")   -> false

Question:

"" is equal NULL????

tks,

Souza, Wellington
___________________________________________________________________________________
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!





More information about the User mailing list