Use a for loop to put values into a string, separated by either SPC or TAB (TAB is better for things like position or vectors). Then use %blah=getWord(SPC list,#) or %blah=getField(TAB list,#) to get those values back out of the string.
OR
Use arrays.