[V4REV] symbolic constants

Trevor DeVore lists at mangomultimedia.com
Thu May 12 23:51:23 CDT 2005


On May 12, 2005, at 10:59 PM, Ruslan Zasukhin wrote:
>
> Actually Transcript itself is very weak here. No constants...

There are constants.  They just aren't like any other constants I've  
seen before.  They are script specific.

> 3) btw, way with globals have trap that if you use global var, but  
> forget
> declare it inside of function as global you get zero value.

You actually just need to declare your globals or constants outside  
of any handlers in the script.

constant kDebugLevel = 3
global gMyGlobal

on doSomething
     put "test" into gMyGlobal
end doSomething

on showSomething
     answer gMyGlobal &cr& kDebugLevel
end showSomething


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the Valentina mailing list