STRING Help?
|
05-13-2023, 05:24 PM
(This post was last modified: 05-13-2023 05:28 PM by toml_12953.)
Post: #1
|
|||
|
|||
STRING Help?
I'm trying to use the STRING function to print a monospaced string. I've read the manual over and over. It could really use more examples! When I try the following, I get Invalid input but I can't see what's wrong. I don't want anything fancy, I just want to print using the current parameters except in a monospaced font. Can someone point me in the right direction?
Code: EXPORT Monospace(X) Tom L Cui bono? |
|||
05-13-2023, 05:46 PM
Post: #2
|
|||
|
|||
RE: STRING Help?
Font size has to be between 0 and 7, you have 10. This works:
PRINT(STRING((1/3),0,-1,-1,{50,7,0,0,1})) and prints 0.3 -road |
|||
05-13-2023, 06:00 PM
Post: #3
|
|||
|
|||
RE: STRING Help?
(05-13-2023 05:46 PM)roadrunner Wrote: Font size has to be between 0 and 7, you have 10. This works: Thanks! The manual I have says this on page 635: "You can also specify the font size (10 to 22)" so it looked like the range is 10 - 22. Tom L Cui bono? |
|||
05-13-2023, 06:12 PM
Post: #4
|
|||
|
|||
RE: STRING Help?
(05-13-2023 06:00 PM)toml_12953 Wrote: The manual I have says this on page 635: The calculator Help is generally more up-to-date than the manual. For STRING it says: Quote:Syntax: |
|||
05-14-2023, 11:04 AM
Post: #5
|
|||
|
|||
RE: STRING Help?
Do the bold, italic and monospaced switches actually work? I don't see a difference when I turn them on or off.
Tom L Cui bono? |
|||
05-14-2023, 12:34 PM
Post: #6
|
|||
|
|||
RE: STRING Help?
(05-14-2023 11:04 AM)toml_12953 Wrote: Do the bold, italic and monospaced switches actually work? I don't see a difference when I turn them on or off. Yes, they do work. However this is primarily for calculating the sizing of the string advance (hence you need to take into account the glyph changes for complete accuracy). If you then feed the same printing format into the print function, you will end up seeing the printed output reflect the style. TW Although I work for HP, the views and opinions I post here are my own. |
|||
05-14-2023, 06:23 PM
Post: #7
|
|||
|
|||
RE: STRING Help?
(05-14-2023 12:34 PM)Tim Wessman Wrote:(05-14-2023 11:04 AM)toml_12953 Wrote: Do the bold, italic and monospaced switches actually work? I don't see a difference when I turn them on or off. Could you give a small example such as I did? Tom L Cui bono? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)