Testing for numerics

J. Landman Gay jacque at hyperactivesw.com
Thu Oct 5 21:56:51 EDT 2006

Robert Sneidar wrote:
> The benefit would be that I could use the state of the global to 
> determine if this was the first time it had been initialized and run 
> some setup code. The natural state of certain globals is empty, so I 
> couldn't simply test for that. If I were coding from scratch I would 
> just work around this, but I am porting business logic from another dev 
> environment. They use this extensively.

Maybe you could fudge it by initializing all the globals to the string 
"NULL". Then check for that. Then you'd just have to add quotation marks 
around all the "NULL"s in the existing code.

Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

More information about the use-livecode mailing list