Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
On Wed, 2010-11-24 at 21:57 +1030, Bruce Bruen wrote: > I really don't see a problem here. > Directly from the help: > "IsObject > Returns TRUE if the vRef is an object or a null reference. > IsObject(NULL) doesn't refer to the NULL constant being an object, it is > answering correctly that a

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
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 Gamba

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
On Wed, 2010-11-24 at 21:57 +1030, Bruce Bruen wrote: > Returns TRUE if the vRef is an object or a null reference. > IsObject(NULL) doesn't refer to the NULL constant being an object, it is > answering correctly that a vRef=NULL is a null reference! > yes i saw now the help about NULL reference

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Benoît Minisini
> i will describe my thoughts about that, > > i read the > > http://gambasdoc.org/help/cat/constants > > and i saw that a TRUE or FALSE value is a Language constant. > Also NULL is a Language constant! > > So i expected from IsObject() to return FALSE when it is feed with > constants as argumen

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
i will describe my thoughts about that, i read the http://gambasdoc.org/help/cat/constants and i saw that a TRUE or FALSE value is a Language constant. Also NULL is a Language constant! So i expected from IsObject() to return FALSE when it is feed with constants as argument. So PRINT IsObject(

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Bruce Bruen
On Wed, 24 Nov 2010 06:51:50 pm Demosthenes Koptsis wrote: > hi, > > PRINT IsObject(NULL) > > returns > TRUE > > The NULL constant is an object? I really don't see a problem here. Directly from the help: "IsObject Syntax bRes = IsObject ( vRef ) AS Booelan bRes = Object? ( vRef ) AS Boolean

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Fabien Bodard
Le 24 novembre 2010 11:59, Benoît Minisini 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

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
sorry... i ll be more careful next time. On Wed, 2010-11-24 at 11:53 +0100, Fabien Bodard wrote: > 2010/11/24 Demosthenes Koptsis : > > > > hi, > > > > PRINT IsObject(NULL) > > > > returns > > TRUE > > > > The NULL constant is an object? > > nead the help please ! > > http://gambasdoc.org/help/

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Benoît Minisini
> 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. -- Benoît Minisini -

Re: [Gambas-user] IsObject(NULL)

2010-11-24 Thread Fabien Bodard
2010/11/24 Demosthenes Koptsis : > > hi, > > PRINT IsObject(NULL) > > returns > TRUE > > The NULL constant is an object? nead the help please ! http://gambasdoc.org/help/lang/isobject > > -- > Regards, > Demosthenes Koptsis. > > > -

[Gambas-user] IsObject(NULL)

2010-11-24 Thread Demosthenes Koptsis
hi, PRINT IsObject(NULL) returns TRUE The NULL constant is an object? -- Regards, Demosthenes Koptsis. -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base &