Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AppReg02.dbf Changes
Message
De
06/07/2002 16:21:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00675820
Message ID:
00675893
Vues:
12
Hi Mel:

>I would like to set a few "%Local.Message.Captions.MyCaptions" programatically if they don't exist in the Application Registry Editor (in particular Message.Captions).

The way you do this, quite simply, is with the cmRegistry.SetKeyValueEx method.
this.oRegistry.SetKeyValueEx('%Local.Message.Captions.My Caption Stuff', ;
   KEY_REPLICATE_NONE, ;
   '', ;
   KEY_TYPE_CHAR, ;
   "Whatever I want")
I haven't tested this but it is there or thereabouts. The only thing I am not to sure on is the third argument which I have specified as the empty string ''. Either this value will specify the Local name value the same as the cKey value itself, or, you may have to specify an actual value on a new, first time key creation (ie., of the local name is the same, specify "My Caption Stuff"). Either way, a couple of calls and you should have what you want.

HTH
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform