Versions Compared

Key

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

...

The CALCMAXLEN message uses the Size parameter to find the maximum number of character that will fit within the specified size. If no Size parameter is specified, then the page width is used.

 

Parameter

ParameterDescription of FieldsCommentsDefault
Parm1 – Text<1> Text to calculate ""
Parm2 - Size<1> SizeThis is the size to calculate the number of characters from""

See also

Get_Printer CALCMAXLEN Message

Example

...

Code Block
* The following example shows how to use the CALCMAXLEN message.
declare function Set_Printer, Get_Printer
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("CALCMAXLEN", "This is a test", 0.5)
size = Get_Printer("CALCMAXLEN") ;* get the max characters
stat = Set_Printer("TERM") ;* End printing