Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resetting the Registry Counter
Message
From
22/10/2004 16:59:46
 
 
To
22/10/2004 06:28:46
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00953563
Message ID:
00953873
Views:
15
Hi Gary:
Thanks for the response, but that didn't work for me.
Let me give some more background
I have a DBC called BCSCommon, which has the BCSTypes.dbf. I am accessing it thru a cmcursor class and lautopk is .t.
Without any intervention on my part when I run a program to load the cursor, I find that codemine has created a registry entry which is not under the Shared.Counters but under %%Bcscommon_appreg01.Counters.Primary Key Bcstypes.
However I try to access this using:
	oCounter = goapp.oregistry.lockcounter('%Bcscommon_appreg01.Counters.Primary Key Bcstypes')
either with the single or double %% the program gets no further than the registry access method and returns a .t.
I am using Codemine 8 by the way.
Any ideas?

Mike
p.s. are you available for consulting?

>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
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform