Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a code sequence
Message
De
02/09/2005 18:27:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01046401
Message ID:
01046442
Vues:
16
>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
select mytable
lock('0') && lock RECCOUNT()
* you have a cod order active
go bottom
insert into (ALIAS()) (cod) values (cod+1)
UNLOCK RECORD 0
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform