Post Reply 
Short hand for line feed (ppl)?
03-13-2014, 09:10 PM (This post was last modified: 03-13-2014 09:11 PM by Han.)
Post: #7
RE: Short hand for line feed (ppl)?
(03-13-2014 08:25 PM)eried Wrote:  
(03-13-2014 07:54 PM)patrice Wrote:  PRINT is pretty limited, so the easiest way is:
Pretty limited for what? for drawing? for calculating? Tongue “Everything should be made as simple... you know the rest.

Code:
PRINT("Hello"+CHAR(10)+"World");

If we want something like "\n" for repeated use, and prefer to not have to repeatedly type CHAR(10), perhaps the following may be useful:

Code:

nl:=char(10); // create a local variable outside of any program block

// then you can use something like:
print("Hello" + nl + "World");

Any future use of print that requires a newline character can simply use nl in place of char(10) -- smaller source file and less typing.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Short hand for line feed (ppl)? - DrD - 03-13-2014, 02:28 PM
RE: Short hand for line feed (ppl)? - Han - 03-13-2014, 02:57 PM
RE: Short hand for line feed (ppl)? - DrD - 03-13-2014, 07:30 PM
RE: Short hand for line feed (ppl)? - Han - 03-13-2014 09:10 PM
RE: Short hand for line feed (ppl)? - DrD - 03-14-2014, 12:59 AM



User(s) browsing this thread: 1 Guest(s)