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

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

How to use the multiline Message Box area??

Post by ValiantCuriosity » Sun Feb 17, 2019 7:58 pm

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 8754 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: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Sun Feb 17, 2019 8:36 pm

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 » Sun Feb 17, 2019 10:25 pm

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: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Sun Feb 17, 2019 10:59 pm

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 » Sun Feb 17, 2019 11:23 pm

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: )
Selection_005.png
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 » 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...

-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 » Mon Feb 18, 2019 9:54 am

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: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Mon Feb 18, 2019 11:34 am

ValiantCuriosity wrote:
Sun Feb 17, 2019 11:48 pm
I'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 » Mon Feb 18, 2019 12:08 pm

: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 » Mon Feb 18, 2019 2:45 pm

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 » Mon Feb 18, 2019 4:20 pm

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 » Mon Feb 18, 2019 6:16 pm

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: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

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

Post by FourthWorld » Mon Feb 18, 2019 6:17 pm

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 » Mon Feb 18, 2019 7:50 pm

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 » Mon Feb 18, 2019 8:04 pm

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