LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I save current contents of several text-box as their default values In LabWINDOWS Executable?

I often need to change default value of text-box,hope can start up my labwindows executable
program with previous text-box contents. How can I do?Thanks for your attention.
0 Kudos
Message 1 of 3
(3,190 Views)

There is no way to store default values of controls directly in the executable, but you may want to save their contents to a file and recall them before displaying the panel, so that the panel is displayed with controls correctly filled.

To save all controls values in a panel  in a step only you can use SavePanelState function to store values in a file. RecallPanelState retrieves values from the file and puts them on the panel in a single call.

If you are concerned with one control only in a panel, you may want to do the same programmatically on this single control, saving its contents in a file with INIfile instrument or in the registry with instructions found in the Programmer's toolbox.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(3,169 Views)

I always get timely help from you ,thank you very much!

Happy New Year!Smiley Happy

0 Kudos
Message 3 of 3
(3,151 Views)