Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About 'Set order'
Message
From
14/11/1999 20:29:48
 
 
To
13/11/1999 10:55:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00290116
Message ID:
00291145
Views:
29
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?
>
>
Previous
Reply
Map
View

Click here to load this message in the networking platform