Carlos,
Well, if you are compiling to an .exe, I would say it is practically impossible. If it is a .SCX form, your program could open the form as a table and modify the properties field of that object (changing the 'value' line), and issuing a COMPILE FORM. But I don't think the form would be able to do it by itself, because it already has that file open.
All that to say this: you will have to store the value in a table, file, or registry...
Also, look at SAVE TO and RESTORE FROM commands, to use a variable file. But I think using a table is a better solution.
>Acually, I thought there might (or should) be a way to write the new value to the form, since forms in VFP are really databases. I think its a pain for small projects having to deal with extra files.
>
>Thanks for the help,
>
>Carlos
Steve Gibson