Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving Checkbox/Optiongroup values
Message
 
 
To
02/02/2009 01:19:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Application:
Desktop
Miscellaneous
Thread ID:
01378718
Message ID:
01378876
Views:
8
>Hi all
>
>How can I save the values of Checkbox or OptionGroup into a form.
>If the user Checks or Unchecks some options when the form is closed and run again it must show the last values.
>
>Thanks

plus another solution as Sergey's suggestion

You can save these values im .MEM file(s)

put to the controls (textbox,checkbox,optiongroup) controlsource m.cvar01,m.cvar02 etc by this way each user can save own .mem files as their preference...
* save filter values button code
Set Safety Off
Local LcFilterFile,LcPath

m.LcFilterFile=Putfile('Filter File Name','','MEM')

If ! Empty(m.LcFilterFile)
	Save To (m.LcFilterFile) All Like cVar*
	Messagebox("Your Filter File Has Been Created...","Saving Filter Values")
Endif
* load saved filter values button code
Local LcFilterFile
m.LcFilterFile=Getfile('MEM','Select Filter File Name','Your Choice',1,'Filter File Name')
If ! Empty(m.LcFilterFile)
	Restore From (m.LcFilterFile) ADDITIVE 
	Thisform.Refresh()
Endif
Previous
Reply
Map
View

Click here to load this message in the networking platform