With the following code
on mouseup
put clickLine ()
put char 6 of the clickline
end mouseup
I tried to get 2 seperate lines of output in the message box (equivalent to what a message window in Lingo used to do), but there is no automatic CR at the end of the first output and the line gets overwritten by the 2nd put statement. I could not find anything in the dictionary, so tried adding return or put return or &return, but nothing worked. Does anyone know the correct procedure?
Multiple Line Output in the Message Box
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Multiple Line Output in the Message Box
Hi lupuss (the wolff
)
you need to prepare the output to be two lines:
Best
Klaus

you need to prepare the output to be two lines:
Code: Select all
on mouseup
put clickLine() & CR & char 6 of the clickline
end mouseup
Klaus
Re: Multiple Line Output in the Message Box
you need to prepare the output to be two lines:
Sorry, I cannot have the two outputs in the same line. They need to be in separated lines, because there are operations in between by which I will output char 6 of the clickline only under certain conditions
Code: Select all
on mouseup
put clickLine() & CR & char 6 of the clickline
end mouseup
Re: Multiple Line Output in the Message Box
Ah, now I get it (hopefully)!
You can:
But remember that the message box is a developer tool and can, but shouldn't!, be added to a standalone
Best
Klaus
You can:
Code: Select all
on mouseup
put clickLine ()
put CR & char 6 of the clickline AFTER msg
end mouseup

Best
Klaus
Re: Multiple Line Output in the Message Box
that's it - thanx a lot! (the ... after msg - thing is really tricky)