Message MultiLine

-matrix--matrix- Member Posts: 103
Hi Guys,

I Need to Print Message In report that print a summary of process executed, so I should print message on more lines:

Example:
Value 1....aa
Value 2....bb
Value 3....cc

Do you know how format the message ?
Thanks in Advance

Answers

  • KosheKoshe Member Posts: 37
    You'll need to use control Text Box with it's property MultiLine set to Yes. The you should write "Value 1...aa\Value 2...bb\Value 3...cc". I think this should do the trick.
  • -matrix--matrix- Member Posts: 103
    Thanks for suggestion @Koshe,
    The problem is that I need to Print the summary In a Message non in a Textbox.
  • SPost29SPost29 Member Posts: 148
    This is a confirm message I did recently
    IF CONFIRM('This is what you entered;\\' +
                   ' Machine No.  %1\\'  +
                   ' No. of Shots  %2\\' +
                   ' Start Time  %3\' +
                   ' Stop Time  %4\\' +
                   '%5\\' +
                   'If this is correct - Click Yes.\' +
                   'To correct an entry - Click No.\',FALSE,"Machine No.",
                   "No. Of Shots","Starting Time","Ending Time",LineChange) THEN BEGIN
    

    The key to multilines is the \ inside the line ending single quote and the + plus sign
    multiple \ will create spaces between the lines
    so
    message('mymessage.\' +
    ' more of my message\' +
    ' final part %1.', myvariable);

    hope this helps
    steve
Sign In or Register to comment.