Well the reason I wanted to retrieve the index for a given variable is so that I can expand my Record without having to describe the extra parts I've had to the script editor. Currently if I was to add a bullet count to my record I would have to write code that tells the script manager to convert the index 5 into the variable "bulletcount".

TShip = Record
X: Integer; //Variable Index : 0
Y: Integer; //1
VelX: Integer; //2
VelY: Integer; //3
Health: Integer; //4
Bullets: Integer; //5
end;

With the method I wish to implement the script manager wouldn't care it would just find the variable index 5 and adjust the values accordingly. Saving me a lot of messing about with case statements. I'm not saying the other way wouldn't work I'm just saying it seems a little inelegant and if I was frequently changing my code the other method would save a lot of time. Does anyone know if it's possible.