[ANN] V4MD_WIN b15 // globals

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Sep 10 12:36:30 CDT 2004


On 9/10/04 12:33 PM, "Martin Kloss" <martin.kloss at gmx.de> wrote:

> At 11:25 10.09.2004, you wrote:
>> Drawback of this - you need to reference it in any function that
>> is used it. I mean:
>> 
>>    on myFunction
>>        global Valentina
>> 
>>        //Now you can use it.
>>    end myFunction
> 
> you don't have to use the global keyword in every function,
> you can just reference the global once at the top of a script
> member:
> 
> global Valentina
> 
> on myFunction1
>  put Valentina
> end myFunction
> 
> on myFunction2
>  put Valentina
> end myFunction2
> 
> Martin.

Excellent!

This simplify life.

Igor you can correct examples for this way


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina-beta mailing list