pandaman Posted May 3, 2006 Report Share Posted May 3, 2006 Hello one and all (again), Is there a way for the user to save the state of one's program (i.e. the values of a control) to a file without manually writing values to a spreadsheet manually? It would be kinda useful in the event that a buncha settings are tweaked and the user just wants to quickly recall them later. Muchos gracias, Mayur PS: please do not be offended by my post icon, I wont use it again! Quote Link to comment
i2dx Posted May 4, 2006 Report Share Posted May 4, 2006 Hello one and all (again),Is there a way for the user to save the state of one's program (i.e. the values of a control) to a file without manually writing values to a spreadsheet manually? It would be kinda useful in the event that a buncha settings are tweaked and the user just wants to quickly recall them later. Muchos gracias, Mayur PS: please do not be offended by my post icon, I wont use it again! I use a ini-file and a global variable for those purposes: the caption of the control in the global variable is the key in the ini-file in the section "user config". The VI has a "read" function, which is called at programm start, so the global is filled with the values, I write back to the file with the "write" function at the end of the programm. when I open a "edit settings" dialog or something like that, I write the value of the global to the control via a local variable ... the drawback is: the values in the ini-file are binary, so you cant read them directly unless you are able to read escape sequences best regards, CB Quote Link to comment
Yair Posted May 4, 2006 Report Share Posted May 4, 2006 And the OpenG file toolkit includes something along the same lines (saving anything (and everything)to an INI file). Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.