logo       

Re: Vartype for nil Date and/or picture object: msg#02967

lang.realbasic.user

Subject: Re: Vartype for nil Date and/or picture object

At 2:31 PM -0500 1/30/04, Corey Redlien wrote:

Is there a way to figure out if a variant (dictionary or otherwise) is picture or a nil date? They both seem to come up as vartype = 9 (indicating object)

A nil object of any sort is vartype 9 -- there is no way for 'nil' to carry any type information, so no way for the Variant class (or VarType function) to know that the object you don't have is a Date rather than a Picture or a Database or a CustomPizzaCutterObject or whatever.

Cheers,
- Joe

--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe-c3q76hHYWa4i8rCdYzckzA@xxxxxxxxxxxxxxxx
http://www.realsoftware.com |
`------------------------------------------------------------------'

- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise