I'm trying to create incrementing variable names inside a loop with no success. Here's an example of the code I had in mind to make it work...

code:
$I = 0
While $I < 5
DIM $TMPVAR$I
$I = $I + 1
Loop

I would want this code to create the following variables...

$TMPVAR0, $TMPVAR1, $TMPVAR2, $TMPVAR3, $TMPVAR4

The problem comes in because variables cannot be used to create variable names. If anyone knows a workaround or another way to accomplish this, I would appreciate it.

Thanks,
Ben Dulaney