Changing your code to:
for x=1 to 3
sele x
do some stuff
endfor
Should work, though it's probably not the best solution. If you're running a process against all open tables, you may want to take a look at the
aused function. Perhaps if your told us what you're trying to accomplish we could give you more specific advice.
>I have the following code
>
>sele 1
>table 1
>sele 2
>table 3
>etc,...
>
>for x=1 to 3
>sele alltrim(str(x))
>do some stuff
>endfor
>
>when I execute this program it gives me
>some errors --- alias 1 does not exist
>
>but, Is this the correct way of coding it
>
>mark oliva
kenweber
GCom2 Solutions
Microsoft Certified Professional