Login
Back to forumSee the full topicGo to last reply

Posted By

JamesC
on 2017-03-06
13:15:59
 Re: PRINT USING / PUDEF

10 A$="ABCDEFGHIJ"
20 PRINT USING "############";A$ : REM 12 # LEFT JUSTIFIED
30 PRINT USING "=###########";A$ : REM 11 # = CENTERED
40 PRINT USING ">###########";A$ : REM 11 # > RIGHT JUSTIFIED

You need one # for every desired output character. If your A$ is 10 characters long, but your PRINT USING only allows for 6 characters, it will only output the first 6 characters.

If your A$ is shorter than the PRINT USING statement, and you desire a different lead character instead of Space (ie, *s), build A$ with *'s instead of Spaces. ;)



Back to top


Copyright © Plus/4 World Team, 2001-2024