Testing for numerics

Mark Smith mark at maseurope.net
Wed Oct 4 22:00:35 EDT 2006


Robert, though this has nothing to do with type-checking, you can  
initialise variables to whatever you like when you declare them, so

global gAGlobal = empty
local aLocal = null

Best,

Mark

On 5 Oct 2006, at 08:47, Robert Sneidar wrote:

> I think this underscores the need for REAL type checking. I was  
> told that a positive integer would return true if "is a date" is used.
>
> As easy as non-typed variables are, it often becomes necessary to  
> check for such things. I for one would like to be able to have the  
> option of having new global variables initialized with NULL or  
> UNDEFINED or something, so that I can check for the first time  
> initialization of said variables. Maybe there could be an addition  
> to the global/local variable declaration so that if you include an  
> arguement and the variable is undefined as of yet, it will  
> initialize the variable with your arguement as in:
>
> global bobtest "NULL"
>
> If bobtest already exists it will leave it as is, but if not it  
> will initialize it with the string "NULL" or whatever you tell it to.
>
> <sigh> if only I ruled the world...
>
> Bob Sneidar
> IT Manager
> Logos Management
> Calvary Chapel CM
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list