Discuss topics that apply across the products, such as the PocketC language, or development in general

Postby Symetrix on Sun Apr 06, 2003 11:06 am

How do I add a linebreak, for example, in an alert?
Posts: 6
Joined: Sun Mar 30, 2003 11:55 am

Postby wolfgang on Sun Apr 06, 2003 11:08 pm

if it is the PalmOS version of PocketC, use \n:

alert ("First line\nSecond line");

If it is the PocketC version, it has a bug and \n does not work directly; in this case, use:

int c_cr, c_lf;
c_cr = 13;
c_lf = 10;

alert ("First line" + c_cr + c_lf + "Second line");


Composing music on the PocketPC! -
Composing music on the PocketPC! -
Posts: 281
Joined: Tue Dec 12, 2000 4:22 am
Location: USA

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests