Imagine I have a game. In days past, I would want to save all sorts of
preferences, such as favorite user colors, high scores, high scorer
names, etc. Often (in C) I would create a structure (called Prefs, for
instance) and the elements of the structures would be the various
settings and more that I would want to save. I would then save out the
whole structure as a binary file to the pref folder, read it back in as
a binary file, and I'd be good to go. Probably not the best method (no
XML was involved at all) but it was pretty easily workable. I usually
included additional unused elements in the structure for future
expansions. (Sometimes such foresight was sufficient, sometimes not!)
Is there a standard method that I should be looking at to do the same
kind of thing with RB? Are there any built-in or otherwise easily
available methods or classes to load and save various program
preferences? I'd hate to start "manually" handling this just to find
there's a relatively standard way to do this. Any ideas? THANKS!
google is your friend...
just type "preferences class realbasic"
and you get a lot of answers ...
--
Jean-Yves.