If I remember it right there should be a function called "var_for_name(STRING* name);" which gives back the pointer to the Variable.
Try this.