Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resetting the Registry Counter
Message
From
22/10/2004 06:28:46
 
 
To
21/10/2004 19:30:04
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00953563
Message ID:
00953664
Views:
18
Hi Mike,

The following works for me (I have changed the name of the counter to match yours) :-
oCounter = m.goapp.oregistry.lockcounter('%Shared.Counters.Primary Key Bcstypes')
if not isnull(oCounter)
  m.goapp.oregistry.setcounter(m.ocounter, '0')  && If key is integer type, you can send through a digit, no problem.
  m.goapp.oregistry.updatecounter(m.ocounter)
  m.goapp.oregistry.unlockcounter(m.ocounter)
endif 
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform