I was looking for a way to save the registration information entered by the user so that the next time they open the program they will not have to enter the same information again.
I looked in the docs and thought that I could set a custom property, however, the custom property does not remain once the application is closed.
Anyone have any idea what the docs are referring to in the above statement.Tip:
To save a variable's value, set a custom property of the stack to the value of the
variable in your applications closeStackRequest or shutDown handler. To
restore the variable, put the custom property into a variable in the application's startUp or openStack handler.
I can see that a custom property of the stack must be set, but not sure how that would work in the closeStackRequest.
I have my variables set up in two fields,
Code: Select all
myRNfield
myEMfield
--the custom property is setup using a variable
set the myProp1 of fld "myRNfield" to RNdata1
set the myProp2 of fld "myEMfield" to EMdata2
how can I save these vars to a custom property using the close stack request?
Or is there an easier way to save field variables.
From the reading I have done, there only appears to be two ways to save a fields contents, either using a custom property, or
setting up a separate stack as described in the docs.