> Subject: window remember values
>
> I have some edit fields with some default text - when the app
> runs and the user calls up this window, he can type into the
> edit fields. however when he closes the window and reopens
> the defaults return. I know I can save to global variables,
> or write to a file, then when he re-opens possibly in another
> session, then the new values can be put in. But I was just
> wondering if there were a
> simple way to change the user input as the window closes,
> so it will recall
> them when it re-opens?
You mean, simpler than assigning them to a global property? I mean, its
like 2 lines
sub window.close()
myproperty= = edifield.text
sub window.open
edifield.text = myproperty
OK, so you might need a few extra lines to check that the mproperty isnt "",
but it is still pretty simple.
Mike
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|