Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to record a value to a property at runtim
Message
 
To
24/12/1998 15:37:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00170090
Message ID:
00170389
Views:
30
>Gil, reading and writing values to and from the registry is really easy once you have the semantics of the API calls out of the way. There are a couple of really good registry classes available here for download- I use Rick Strahl's currently but any will work fine.
>Using a class like this allows you to make calls to the registry basically like
>
>oReg.WriteValue(HKEY_CURRENT_USER, "Software\MyCompany\MyProgram\MyVersion\Settings","CustomStoredVal",THISFORM.MyProperty)
>
>AND
>
>oReg.ReadValue(HKEY_CURRENT_USER, "Software\MyCompany\MyProgram\MyVersion\Settings","CustomStoredVal")
>
>or something like that.
>
>Once you are comfortable with it, you can integrate it into your framework and build form that remember their size and position, as well as any other user preferences.


I was going to show him the hard way - I didn't think of looking in the download section. I just blew the dust of my VFP3 CD to get Win32API.HLP file and cut and paste the three required sections to a doc file. Oh well, can't win them all (there's ALWAYS an easier way).

Merry Christmas,
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform