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
From
23/12/1998 16:51:13
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00170090
Message ID:
00170099
Views:
27
>Hi all,
>
>I wonder if this is possible. Basically, I'd like to record in one of the form's properties a value that is selected by the user and not having to record that in a table, but in the actual form's table (this is at runtime). I know the property must be initialized, so the idea is, in the next session the user will have as default value what was selected in a previous session.
>
>Thanks,
>
>
>Gil

The best way to do this is to store the value in the registry or an .ini file... persistent data must persist somewhere.

What you can do if you have 6.0 is encapsulate storeing and retreving the value into an accces and assign methods so to your code and form it appears as if the value was stored as a property...

CValue_Assign - will take the value and write it to the .ini file

cValue_Access - will read the value from the .ini file and return in.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform