Post Reply 
RPL That Stack
12-19-2024, 09:17 PM (This post was last modified: 12-19-2024 09:28 PM by raprism.)
Post: #5
RE: RPL That Stack
After reading about a PAD program in HP50g AUR to produce padded text I wondered how to get some kind of print command PrLn with right-aligned output. The following example just makes use of the normal text size, and spacing to get 8 lines of output:
Code:

Directory {
    PrLn
        «
            @ Usage: <obj> <lineno> PrLn
            → o l
            «
                o →STR
                { 10 } 6.70 l 1.50
                * - +
                { 2 FALSE FALSE -1
                    0 } +
            »
            DISP
        »
    TPrLn
        «
            1 8
            FOR i
                i 8 / →Q 1 TOLIST
                i * i PrLn
            NEXT
        »
}
'DPrLn' STO

The output of the test function TPrLn is:
   


Attached File(s)
.bmp  TPrLn.bmp (Size: 12.31 KB / Downloads: 4)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RPL That Stack - raprism - 11-23-2024, 05:07 PM
RE: RPL That Stack - c3d - 11-29-2024, 07:51 PM
RE: RPL That Stack - raprism - 11-29-2024, 08:39 PM
RE: RPL That Stack - raprism - 12-19-2024 09:17 PM
RE: RPL That Stack - c3d - Yesterday, 10:04 PM



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