General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only