Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a code sequence
Message
De
02/09/2005 16:58:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01046401
Message ID:
01046407
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform