At 11:37 PM +1000 10/29/04, Kim Kohen wrote:
Thank you Nils, I understand this - I'm just surprised there is no other way
to change the state of the control. It means I'd (potentially) have to have
a pref file for every checkbox, popup, radio button etc.
Yes, every one which you want to retain its text. This is how all
applications work -- any data they store, must be stored in a file
someplace. And (in case that was unclear), retaining the state of a
control between runs of the app implies storing data that represents
that state.
Now I just have to learn to write files out....
Fortunately this is quite easy in RB; see the BinaryStream class, for example.
But it sounds like you're trying to work without the benefit of the
RB tutorials. I highly recommend you go back and do them; that will
cover reading and writing files, managing preferences, working with
text, handling menu commands, and all sorts of other things that will
take you ten times longer to learn piecemeal.
Best,
- Joe
--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|