Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AppReg02.dbf Changes
Message
From
06/07/2002 16:21:49
 
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00675820
Message ID:
00675893
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform