[gradsusr] keep variable when opening a new .gs file

Daniele Gandini daniele.gandini at arpa.piemonte.it
Thu Aug 26 06:04:05 EDT 2010


Joralf,

you pass region as argument to script europe.gs, i.e.:

'run 'region'.gs' 'region 

and in europe.gs:

function europe(args)

region=subwrd(args,1)

Bye

Daniele

----- Messaggio originale -----
Da: "Joralf Quist" <J.Quist at meteovista.nl>
A: gradsusr at gradsusr.org
Inviato: Giovedì, 26 agosto 2010 10:32:29
Oggetto: [gradsusr] keep variable when opening a new .gs file



Hi all! 

I was wondering, is it possible to define a variable in one script and keep that variable when opening a new script? 

For example: 

uberscript.gs contains: 

region='europe' 
'run 'region'.gs' 

It will then run europe.gs, in which I want to have region defined as europe. But grads resets the defined variables when you open up a a new script. 

Any help would be greatly appreciated. 

All the best, 

Joralf Quist 
Assistant Meteorologist 
Meteovista.nl 
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr




More information about the gradsusr mailing list