Page History
...
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
Parameter | Description of Fields | Comments | Default |
---|---|---|---|
Parm1 – Text | <1> Text to calculate | "" | |
Parm2 - Size | <1> Size | This 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 |