Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a code sequence
Message
De
07/09/2005 09:29:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01046401
Message ID:
01047319
Vues:
11
This message has been marked as a message which has helped to the initial question of the thread.
True, I did miss a step. After the select there is:
if _tally > 0
  lctemp[1] = lctemp[1] + 1
else
  lctemp[1] = 1
endif
appe from array lctemp fields cod
But again, this is not the best way to go.

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform