How to use the multiline Message Box area??

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: Klaus, FourthWorld, heatherlaine, kevinmiller

ValiantCuriosity
Posts: 128
Joined: Thu Jun 30, 2016 3:08 am

How to use the multiline Message Box area??

Post by ValiantCuriosity »

Good Mid Morning (my time),

Another "baby" question for you. I'm trying to get the message box to respond to several lines of code. I'm using LC9.02. I put the code into the box and press return. Nada. I get no response. What is the key that I need to make the magic happen?

I have a button ID 1007 on a stack to test this.
messageBoxQuestion.png
messageBoxQuestion.png (5.31 KiB) Viewed 13233 times
Thank you, thank you, thank you. I"m still happy dancing about the code completion help: <Tab> instead of <Return>, who would'a thunk it? :lol:

-Rachel
May I never be cured of my curiosity! :D
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to use the multiline Message Box area??

Post by Klaus »

Hi rachel,

RETURN creates a new line, but ENTER finally executes all the stuff!


Best

Klaus
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to use the multiline Message Box area??

Post by bogs »

Erm, what do you do if both keys on your keyboard are marked 'Enter' then? :D
Short answer: to find out (on 'nix), I hit both, the 'enter' key on the numpad actually executed the command, the 'enter' key on the main keyset only sent the cursor to the next line.

IF you have a problem like that Rachel, you can also get it to execute with (depending on OS and Keyboard) [ctrl+Enter] or (I think) [cmd+Enter] :)
Image
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to use the multiline Message Box area??

Post by Klaus »

Erm, what do you do if both keys on your keyboard are marked 'Enter' then?
Get a "correct" keyboard and not this chinese rubbish, old miser! :D
To be precise:
returnenter.jpg
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to use the multiline Message Box area??

Post by bogs »

Sorry, at $26. this keyboard was already 5x the price I used to pay, I ain't goin no higher for NOBODY :P :P :P
(Dang failin eye-sight :shock: )
OMG, sticker shock!
OMG, sticker shock!
I would love to get my old IBM keyboard working again. Used to sound like a machine gun going off in the house :wink:
Image
ValiantCuriosity
Posts: 128
Joined: Thu Jun 30, 2016 3:08 am

Re: How to use the multiline Message Box area??

Post by ValiantCuriosity »

<control> + <enter/return> got it! :D I'm on a MacBook pro. No number pad. Thanks guys. You're the best. It's little things like this that make life difficult or easy...

-Rachel
May I never be cured of my curiosity! :D
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to use the multiline Message Box area??

Post by bogs »

ValiantCuriosity wrote: Sun Feb 17, 2019 11:48 pm I'm on a MacBook pro. No number pad.
Ah well, there's your problem right there! We need to get you a correct laptop, not one of those cheap Chine... oh wait... :twisted:
Image
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to use the multiline Message Box area??

Post by Klaus »

ValiantCuriosity wrote: Sun Feb 17, 2019 11:48 pmI'm on a MacBook.
AHA! Not the most unimportant piece of information. 8)
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to use the multiline Message Box area??

Post by bogs »

:mrgreen: :mrgreen:
Image
Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: How to use the multiline Message Box area??

Post by Mikey »

You can also use the single-line and separate the statements with a semicolon
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to use the multiline Message Box area??

Post by bogs »

I thank you for that Mikey, although I knew you could separate statements like that in the code editor, for some reason, I never made the connection for the messagebox :roll:
Image
Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: How to use the multiline Message Box area??

Post by Mikey »

it's even more convenient if you write a runtime statement interpreter, because then you can just use an answer dialog...
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to use the multiline Message Box area??

Post by FourthWorld »

ValiantCuriosity wrote: Sun Feb 17, 2019 11:48 pm <control> + <enter/return> got it! :D I'm on a MacBook pro. No number pad. Thanks guys. You're the best. It's little things like this that make life difficult or easy...
That key combination also triggers the Apply button in the Script Editor.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
ValiantCuriosity
Posts: 128
Joined: Thu Jun 30, 2016 3:08 am

Re: How to use the multiline Message Box area??

Post by ValiantCuriosity »

Bugs, err, Bogs and Klasiman--err, Klaus. As always you two are in rare form. I know, "living on the edge". :D
BTW, people also misspell my name. Now, that isn't a challenge!

Thanks guys.

Mikey,

Yes, thank you, I did note the separator, but really wanted to know what to do regarding the multiline statement.

Fourthworld,
I hadn't realized this could be used on the script editor too.

-Rachel
May I never be cured of my curiosity! :D
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: How to use the multiline Message Box area??

Post by bogs »

Mikey wrote: Mon Feb 18, 2019 6:16 pm it's even more convenient if you write a runtime statement interpreter...
Ah, what the heck is that? :x
Bugs
Meh, whats up doc?
ValiantCuriosity wrote: Mon Feb 18, 2019 7:50 pm I know, "living on the edge". :D
I used to live on the edge!!
(...but then I fell off...)
:|
Image
Post Reply