Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scatter
Message
From
28/10/1997 06:03:43
Chiang Jeffrey
Paramoun Air Sea Svcs P/L
Singapore, Singapore
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00040596
Message ID:
00056950
Views:
29
** This code is in the click event of the NEW button.
the invsetup lookup table is also in the data environment of the form.

*******
meminv=0
meminvnext=0
&& Get next Invoice/do number

meminv=invsetup.nextinv
meminvnext=meminv
meminvnext=meminvnext+1
replace invsetup.nextinv with meminvnext

******


>>I need help on this and I hope you can advise.
>>
>>Thnx
>Jeff,
>
>You didn't show the code you use to get the new numbers. Make sure that code locks the record, retrieves the new number, updates the next number and then unlocks the record. The locking and unlocking force disk reads and writes and insure that two users are not retrieving the number at the same time.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform