Le 24 novembre 2010 11:59, Benoît Minisini
<gam...@users.sourceforge.net> a écrit :
>> hi,
>>
>> PRINT IsObject(NULL)
>>
>> returns
>> TRUE
>>
>> The NULL constant is an object?
>
> NULL is almost everything. So IsObject(Null) and IsString(Null) returns TRUE.
> But IsDate(Null) returns FALSE, whereas Null can be a date.
>
> So things are not very logical there.

I think too .. as i can't use a null as an object so it is not an
object... but it depend if isobject test the variable type or the
content.

For exemple
dim o as object

isobject(o) will return true even if o is null... o can only be an object

but
dim v as variant

is object(v) will return false if it is null ... it can be anything

....
in my mind it will work like that ...


>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabien Bodard

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to