Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resetting the Registry Counter
Message
De
22/10/2004 06:28:46
 
 
À
21/10/2004 19:30:04
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00953563
Message ID:
00953664
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform