..............

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
theonewhoasked
Posts: 4
Joined: Mon Sep 05, 2022 11:57 am

..............

Post by theonewhoasked » Mon Sep 05, 2022 12:43 pm

...................
Last edited by theonewhoasked on Mon Sep 05, 2022 1:58 pm, edited 1 time in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10096
Joined: Fri Feb 19, 2010 10:17 am

Re: Need of explanation of what this means and how to do it

Post by richmond62 » Mon Sep 05, 2022 1:06 pm

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.

theonewhoasked
Posts: 4
Joined: Mon Sep 05, 2022 11:57 am

Re: Need of explanation of what this means and how to do it

Post by theonewhoasked » Mon Sep 05, 2022 1:22 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Need of explanation of what this means and how to do it

Post by dunbarx » Mon Sep 05, 2022 1:31 pm

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?
textTest.livecode.zip
(1003 Bytes) Downloaded 119 times
Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Need of explanation of what this means and how to do it

Post by dunbarx » Mon Sep 05, 2022 1:34 pm

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

Post Reply