From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

big problem about toggle button

I am editing an config.ini file,I wrote the toggle button status into
the file.for example:if check box was checked,status=1,else status=0.I
wrote status=1 into config.ini.when i loaded the config.ini file I can
not see the toggle button's former status(checked),who can tell me how
to deal with it?

thanks a lot!
0 Kudos
Message 1 of 3
(2,696 Views)
Hello

Im not sure what exactly the problem is, but we have some samples that demonstrate how to read and write to ini style files under ../samples/toolbox/ini.prj. perhaps that would point you in the right direction.

Also, you can use the SavePanelState function, which automaticaly saves the state of the controls on your panels to a file. You can then read back the state by using the RecallPanelState function. This avoids the hassle of doing the read and write operations yourself

I hope this helps
Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(2,696 Views)
dear sir:
thanks for your advise,I will study the example carefully!
0 Kudos
Message 3 of 3
(2,696 Views)