Page 1 of 1
Text from a card to a file and back again
Posted: Thu Nov 20, 2008 8:12 pm
by wilhelmeros
Hello to all,
i am new in revolution.
How can i save text from a field on a card in a way, that if i start my app the text is shown on the right place again.
who can help me?
Posted: Thu Nov 20, 2008 8:38 pm
by Mark
Hi wilhelmeros,
Why do you want this? If you are using a stack that is not part of a standalone, you can just save your stack with the information in the field.
Anyway, this is a way you could do this.
Code: Select all
on closeStack
put fld x of cd y into url ("file:" & <path to your file>)
pass closeStack
end closeStack
on preOpenStack
put url ("file:" & <path to your file>) into fld x of cd y
pass preOpenStack
end preOpenStack
This is one of many possible ways. We might come up with something else, if you tell us why you need this.
Best,
Mark