[Gambas-user] IsObject(NULL)

Demosthenes Koptsis demosthenesk at ...626...
Wed Nov 24 13:14:08 CET 2010


On Wed, 2010-11-24 at 12:21 +0100, Fabien Bodard wrote:

> 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

hm... i checked this in Gambas2-2.21

DIM v AS Variant = NULL

PRINT IsObject(v) 'True

i see that, if something is NULL is recognized as object anyway.

-- 
Regards,
Demosthenes





More information about the User mailing list