Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a code sequence
Message
De
07/09/2005 03:59:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01046401
Message ID:
01047268
Vues:
9
This message has been marked as the solution to the initial question of the thread.
>select max(cod) from mytable ;
> into array lctemp
> lctemp[1] = lctemp[1] + 1
> appe from array lctemp fields cod
>
>If the table already contain data it works fine
>However it the table is empty, an operand/operator mismatch error appears
>
>Moises
dimension lctemp[1]
select max(cod) from mytable ;
    into array lctemp
  lctemp[1] = IIF(_tally=0,1,lctemp[1] + 1)
  appe from array lctemp fields cod
If you use this in a shared table you won't go far.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform