Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription of FieldsCommentsDefault
Parm1 - Text<1> TextText to calculate width and height""

Example

 
Code Block
*  The following example shows how to use the CALCTEXT message.
declare function Set_Printer
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("CALCTEXT", "This is a test. ")
size = Get_Printer("CALCTEXT") ;* get the size
textWidth = size<1> ;* width of the text
textHeight = size<2> ;* height of the text
stat = Set_Printer("TERM") ;* End printing

...