Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a code sequence
Message
From
02/09/2005 16:58:45
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01046401
Message ID:
01046407
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>I am using into a form:
>
>
>  select mytable
>     go bottom
>        cod = mytable.cod + 1
>    appe blank
>        replace mytable.cod with cod
>
>
> I think this rotine is not suitable because some costumers complain
>that for some reason the code become repetead
>Is there a more eficient way to do it ?
>
>Regards
>
>Moises
I think a better way would be:
  select max(cod) from mytable ;
     into array lctemp
  lctemp[1] = lctemp[1] + 1
  appe from array lctemp fields cod
HTH
Beth
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform