multiple lines in maketext()

Discussions about CSEntry
Post Reply
Ali
Posts: 3
Joined: June 6th, 2019, 4:43 am

multiple lines in maketext()

Post by Ali » July 8th, 2019, 8:46 am

Hi Everyone;
I just wanted to write a message to be displayed in multiple lines using maketext() and accept(). It is very helpful for a long text message.
EX.
string message = maketext("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", X1, X2, X 3, X4, X5, X6);
numeric choice = accept(message,
"Fix -------------",
"Fix -------------",
"Fix -------------",
"Fix -------------",
"Fix --------------",
"Fix -------------");
Thanks;
Ali

aaronw
Posts: 190
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: multiple lines in maketext()

Post by aaronw » July 8th, 2019, 11:55 am

The accept dialog will either scroll (Windows) or wrap (Android). However, if you're using an error message you can create newlines like this:
errmsg("line 1\n line 2\n");

Post Reply