oh and if you need to compare you should use && instead of &

although I'm sure that was just a mistake on your post..

you can also pass the vector through the function's argument list ,something similar to

void getvalue (var x , var y, var z)

or

void getvalue (VECTOR* that_vector)



Compulsive compiler