01-11-2010 09:26 AM
DFGray wrote:Local variables are powerful. You can use that power to help or to hurt...
Ooohhh... succint and all-encompassing. Me likey!
01-22-2010 12:46 PM
Hi Putnam,
Sorry to take so long to reply.
See attached code.
R
01-22-2010 12:47 PM
The forum wouldn't let me attach an xml file.
So here it is. Simply remove the .txt extension at the end.
02-03-2010 10:53 AM
02-04-2010 08:30 AM - edited 02-04-2010 08:34 AM
What do you mean?
The config file in this example is an xml file. And it gets updated by whatever vaules you change in the control box on the left.
I modified the code to include indicators to show the original values from the xml file and the values that will be written to the file.
See images below:
This is before running the program. The change controls remembered the values from the last run. You can set these to some initial value and save as default.
The top left shows the values that were in the config file. The bottom left shows the new values that were set.
The bottom right shows the values that were written to the file.
Run the program again and the top left corner now shows the new values that were written to the xml file (the current contents of the file). See, it does update the config file.
02-04-2010 08:37 AM
Or did you mean that you want the values of the control (bottom left) to be updated with the values from the xml file?
If so, then I will modify the example.
02-04-2010 10:34 AM
02-05-2010 07:12 AM
02-05-2010 10:19 AM