Oh, in this case use IsInteger(). Jussi
On Sat, May 31, 2014 at 6:48 PM, Jussi Lahtinen <jussi.lahti...@gmail.com> wrote: > It's correct, NULL is not same as zero. > I suggest you use IsNumber() to determine if the string can be converted. > > Jussi > > > On Sat, May 31, 2014 at 12:48 PM, Patrik Karlsson <pata.karls...@gmail.com > > wrote: > >> 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@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user