Page 1 of 1
..............
Posted: Mon Sep 05, 2022 12:43 pm
by theonewhoasked
...................
Re: Need of explanation of what this means and how to do it
Posted: Mon Sep 05, 2022 1:06 pm
by richmond62
That looks like an exam question.
I think the best thing for you do do is start reading the LiveCode built-in Dictionary, and learn a bit from there.
The answer to a lot of what you are asking is explained in the Tips:
These variants put things before or after what everything is in the variable.
It would be interesting to know where you are getting these exercises from.
Re: Need of explanation of what this means and how to do it
Posted: Mon Sep 05, 2022 1:22 pm
by theonewhoasked
I know like basics and stuff like that. But this is supposed to be a "basic" excercise from my teacher.
I've built very simple programs but this one I don't know.
I just don't understand what I am supposed to create exactly
Re: Need of explanation of what this means and how to do it
Posted: Mon Sep 05, 2022 1:31 pm
by dunbarx
Hi.
It sounds like you already know how to do this.
Here is a little stack. It displays whatever you type, whether within the field itself or simply anywhere on the card. Since you want to maintain a variable, I had to create a global one, "masterVariable", that is built along with the field contents.
Why build a variable? What do you intend to do with it, that the field does not already do, that is, to show the current state of whatever one types?
Craig
Re: Need of explanation of what this means and how to do it
Posted: Mon Sep 05, 2022 1:34 pm
by dunbarx
I just saw your last post.
How much experience do you have with LiveCode? Do you know how to make a new stack, and to place controls on it. Do you know how to create a script that is attached to a control, or the card or stack/ Do you know how to step through a handler?
Craig