Set defalt in a form's control by code

StefanSch

Registered User.
Local time
Today, 16:59
Joined
Jan 18, 2003
Messages
136
Do you know how I can set the following:

I a user enters a number in a form's control, this number should be stored/set as default in this control. Thus, if the user closes the form and opens it again, the number should still be there.

I don't/can't do this with a table.

Regards, Stefan
 
Why not store it in a table.
Ok, one other way as long as some form is open is to define a global variable, and set it to the value. Of course once the app is closed it is gone.
When I have this need, I usually define a Parmeter table that contains some key (usually text 15 long) and a StringCol, IntCol, LongCol, DateCol and then I can query the key column for some parm name and pick the value I want. I even use it with shared resources and add an user ID to make their values unique. We have one where they don't want to login, so we assign a temp. ID (timer works) and use that.
Just some ideas.
 

Users who are viewing this thread

Back
Top Bottom