>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
Well thanks to all of you for your help and advices. What I am trying to
acomplish is that I have about 40 tables that share the same record structure
and I have to open one by one and change their struc (adding some new fields)
the tables must remain separate from each other and then run some other program that will add some more info into them and at the end it will suply me
with a SDF type file for extra processing..
mark oliva
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement