>>>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,
>>
>>You would have to write the value into the .EXE -- Possible using low-level file functions, but very risky. I would suggest a parameter table in .dbf format which you use to store user defaults at one record for each user.
>>
>>regards,
>
>James,
>
>Thanks for the fast response, I guess you're right it could pose some serious trouble trying to do something like that, but the one thing I'm trying to stay away is to create a table just to hold one value. Doing it the way I'm thinking the EXE would have to be recompiled and who knows what else since a path to a file could be pretty lenghty and complicated in the case of network paths <g>. In any case what other alternatives could there be for instances such as this? I've thought about appending a line to the config.fpw? writing it to an .ini? Any other ideas?
>
Gil,
Of course you could write it to an .ini file. But if you do not already have an .ini file for your app, this is just another instance of creating a "table" to hold one value -- just a different sort of table.
I have used .ini files to hold values in VFP, but it's just as simple and more controllable to use a .dbf parameter table (uh oh, now I'm going to hear from the API gurus).
If you want to use an .ini, there is pretty good description of the process in the Programmer's Guide.
regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.