How do I save settings from a form and load it onto the form for next time?
How do I save settings from a form and load it onto the form for next time?
Last edited by Mr. Doctor; 10-11-2012 at 08:38 PM.
Like save an integer from a running script, close the script, and have the same integer working the next time you turn it on?
I would use a website to store it.
I ... Am ... CARTMANN!
saveinifile()
loadinifile()
![]()
<TViYH> i had a dream about you again awkwardsaw
Malachi 2:3
If you use a site, have a MySQL database in there and some PHP scripts to retrieve / save the values.
There used to be something meaningful here.
SaveSetting
LoadSetting
Ok, how do I use save setting and load setting?
Last edited by Mr. Doctor; 02-05-2010 at 08:36 PM.
SCAR Code:program New;
begin
SaveSetting('ScriptName', 'Setting to save', 'Value');
writeln(LoadSetting('ScriptName', 'Setting to save'));
end.
Thanks Myles![]()
I would use WriteINI and ReadINI though because Save/LoadSetting saves it in the registry or temp or something and it is not easily accessible (without using SCAR).
WriteINI and ReadINI allow you to pass the name of the file to write/read to/from.
The parameters are pretty much identical aside from the fact they require an extra Filename parameter.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
There are currently 1 users browsing this thread. (0 members and 1 guests)