Global name in a variable - How to set it??

Hi Fols

I have a variable that holds an actual globals variable name:

myVar = ‘globals.mysetting’

I need to use this variable (myVar) to actuially set the global to a value so something like myVar = 1

Cant figure out the syntax to use for this if its possible??

Feedback appreciated.

globals[myVar]? You should chop off the ‘globals.’ part from ‘‘globals.mysetting’’ or store it initially without the ‘globals.’ prefix

Paul

pbakker:
globals[myVar]? You should chop off the ‘globals.’ part from ‘‘globals.mysetting’’ or store it initially without the ‘globals.’ prefix

Paul

Excellent - thanks Paul