Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form - changing the controls source property
Message
From
20/10/1997 08:19:12
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054836
Message ID:
00055489
Views:
28
>>> * NextId.Prg
>>> LPARAMETERS pcTable
>>> IF NOT USED("SysKeys")
>>> SELECT 0
>>> USE SysKeys ALIAS SysKeys AGAIN
>>> ELSE
>>> SELECT SysKeys
>>> ENDIF
>>> SET ORDER TO TableName
>>> SEEK UPPER(pcTable)
>>> DO WHILE NOT FLOCK()
>>> ENDDO
>>> IF FOUND()
>>> liKey = NextID
>>> REPLACE NextId WITH NextID + 1
>>> ELSE
>>> APPEND BLANK
>>> REPLACE NextId WITH 1
>>> liKey = 0
>>> ENDIF
>>> UNLOCK
>>
>>Is there any special consideration in order to use FLOCK() instead of RLOCK()?
>Michel,
>
>No, my actual code uses RLOCK() I just typed FLOCK() in the message by accident. Actually RLOCK() is probably better.

That's what I thought. :)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform