[Gambas-user] CInt("0") <> CInt("")

Fabián Flores Vadell fabianfloresvadell at ...626...
Sat May 31 15:22:56 CEST 2014


I think that the result is correct.

?Cint("0")
0

Try this in the gambas console to see how Gambas evaluate empty strings:

? if("", "Hola", "aloH")
aloH
? ["Item":Null].count
0
? ["Item":""].count
0
?isnull("")
True


2014-05-31 6:48 GMT-03:00 Patrik Karlsson <pata.karlsson at ...626...>:

> Should not CInt("") return 0?
>
> Print cint("")
> Type mismatch: wanted Integer, got String instead
>
> /Patrik
>
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabián Flores Vadell
www.comoprogramarcongambas.blogspot.com
www.speedbooksargentina.blogspot.com



More information about the User mailing list