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')
> m.goapp.oregistry.updatecounter(m.ocounter)
> m.goapp.oregistry.unlockcounter(m.ocounter)
>endif
>