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?
Text from a card to a file and back again
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 1
- Joined: Thu Nov 20, 2008 8:06 pm
Text from a card to a file and back again
Great regards
wilhelmeros
wilhelmeros
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.
This is one of many possible ways. We might come up with something else, if you tell us why you need this.
Best,
Mark
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
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode