do it Posted February 16, 2007 Share Posted February 16, 2007 Does anyone know how to get a carriage return, or new line when working with strings? Quote Link to comment
do it Posted February 16, 2007 Author Share Posted February 16, 2007 What I mean is when sending strings to a message or dialog window and I would like more than one line. Is it possible to do this? Quote Link to comment
Rick Francken Posted February 16, 2007 Share Posted February 16, 2007 Like this? var MessageText: string; begin MessageText:= Concat('First Line', Chr(13), 'Second Line'); AlrtDialog(MessageText); end; Quote Link to comment
Petri Posted February 16, 2007 Share Posted February 16, 2007 A CR in the string itself also works: [/code] abuseString1 := 'Can't you stupid user select - a rectangle - a polygon - an arc or - a circle? GEEEZ!'; ALRTDIALOG(abuseString1); [/code] In text file output, CHR(13) or a constant (CONST pling = CHR(13) is required if WRITELN is not a suitable mechanism. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.