Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About 'Set order'
Message
De
14/11/1999 20:29:48
 
 
À
13/11/1999 10:55:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00290116
Message ID:
00291145
Vues:
30
Hi,

Try something like this:

LOCAL nNextNo
nNextNo = 0
SELECT yourtable
CALCULATE MAX(yourtable.inv_no) TO nNextNo
IF nNextNo > 0
Do your insert here...
ENDIF

HTH.

>I have added your code in my program but the same problem exist. I think my 'set order to inv_no' and other code in my program has conflict. So let me put the question in this way ---
>If I don't use 'Set order' command, how can I find the maximum 'inv_no' in my table?
>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform