Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Screen snapshot
Message
From
04/12/2005 11:19:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01074428
Message ID:
01074726
Views:
16
>Hi Cetin.
>Situtui is as follows:
>
>A user is in on a screen, has entered a lot of data say 20 fields on a form as well as some data. This has taken him 1 hour to do. Its now 5pm and he needs to catch a bus at 5.10. He does not have time to 'save' the form, as he still needs to check out a few things, but he does not want to have to come back and spend another hour entering all the details again.
>
>The data file he has been working on.. no problem I can save that and restore it subsequently.
>
>I was wondering if there is an easy way to save 'all' the other stuff to do with the form.....e.g. Variables, Controls, Objects and the data thats in them. e.g. SaveMyFormStuff(ToMyFormFile)
>
>Then the next morning when he comes in , he goes to that form and clicks a button which woulf RestoreMyFormStuff(ToMyFormFile) and he ends up exactly as he was yesterday at 5pm.
>
>Now I know I could probably strat saving all the fields to a file somewhwre but I was looking for a 'One Command' that would do it.
>
>Regards,
>
>Gerard
>
You will have a lot of programming to do to accomplish this, there is no built in feature for this.

>>>Hi.
>>>I would like to be able to 'Save' a form , with all variables and control values and come back to it subsequently and 'Restore' it.
>>>
>>>I know I could individually save all object values and varibales to a file but was wondering if there was a One liner to do this, and then to restore it at a later time
>>>Someting like:
>>>SaveMyForm(MyPlaceHolder) Save objects and form level variables
>>>RestoreMyForm(MyPlaceHolder) Restore same
>>>
>>>
>>>regards,
>>>Gerard
>>
>>Would you elaborate.
>>Sounded like:
>>myForm.hide()
>>...
>>myForm.Show()
>>
>>Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform