display many elements in the message box

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
problème
Posts: 77
Joined: Fri Oct 23, 2015 12:03 am

display many elements in the message box

Post by problème » Tue Dec 01, 2015 4:55 am

Hello,
I want to know how to display many elements in the message box.

Code: Select all

command Disp
  put "line1"
  put "line2"
end Disp
In the message box, i have only "line2" that is displayed

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: display many elements in the message box

Post by quailcreek » Tue Dec 01, 2015 5:08 am

There is a multi-line button on the message box. The second one from the left.
Tom
MacBook Pro OS Mojave 10.14

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: display many elements in the message box

Post by bn » Tue Dec 01, 2015 5:20 am

Hi Problème,
command Disp
put "line1"
put "line2"
end Disp
what this does is to put line1 into the message box and then immediately line2, so you don't see line1.

try

Code: Select all

command Disp
  put "line1"
  put cr &  "line2" after msg
end Disp
Kind regards
Bernd

problème
Posts: 77
Joined: Fri Oct 23, 2015 12:03 am

Re: display many elements in the message box

Post by problème » Tue Dec 01, 2015 5:49 am

thanks for the help

Post Reply