--Set Variable Named (variable?)--

Hey
I have a variable called o.var.
Let’s say that it contains ‘blah’.

here is the question:
How can i access GameLogic.(o.var) without typing ‘blah’ (because it will change)?

Care to elaborate? I just don’t understand why you could not just call it o.var, as blah is the value, not the variable. Though if that wasn’t what you were talking about, you could explain more. is o.var is a dict?

sorry.
I want to wright a script that will set local variable to a GameLogic variable. I have a variable to recieve the value, and a string, which is the variable name.

maby this will help:

from GameLogic import *
con = getCurrentController()
o = con.getOwner()

o.Text = GameLogic.(o.prop)

the only problem is: it dose not work

what is the correct way to say

o.Text = GameLogic.(o.prop)

https://blenderartists.org/forum/viewtopic.php?t=26052

I guess you haven’t looked at the python builtin functions enough
http://www.python.org/doc/2.3.5/lib/built-in-funcs.html#built-in-funcs

thank you for both links. I searched the python site, but failed to find that. I will read it.

you can alway use exec() if you have something that will change.