Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a standard RB way to load and save various Preferences?

0 views
Skip to first unread message

Pat

unread,
Jul 31, 2009, 1:55:24 PM7/31/09
to
I'm new to RB, have a personal Mac edition, and come from a background
of C programming for the Mac and PC. I'm starting an app in RB and
would like to save a bunch of prefs.

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!

Jean-Yves

unread,
Aug 1, 2009, 6:05:27 AM8/1/09
to
In article <310720091355247747%p...@pusodiqcas.com>,
Pat <p...@pusodiqcas.com> wrote:

google is your friend...
just type "preferences class realbasic"
and you get a lot of answers ...

--
Jean-Yves.

Pat

unread,
Aug 1, 2009, 9:48:35 AM8/1/09
to

But, of course! Thanks!


In article <no-pub-for-jypochez-...@news.free.fr>,

0 new messages