Difference between revisions of "APRINTERS()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
− | APRINTERS(<array>) | + | APRINTERS([<array>]) |
==See Also== | ==See Also== | ||
− | [[GETPRINTER() | + | [[GETPRINTER()]] |
==Description== | ==Description== | ||
The APRINTERS() function returns the number of available printers and loads the array <array> with the printer names. The <array> need not be pre-declared and will be overwritten and resized as required if it already exists. | The APRINTERS() function returns the number of available printers and loads the array <array> with the printer names. The <array> need not be pre-declared and will be overwritten and resized as required if it already exists. | ||
+ | |||
+ | From Lianja v9.8, the <array> can be omitted. In this case, an array reference is returned to the array _APRINTERS. | ||
==Example== | ==Example== | ||
Line 19: | Line 21: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:Lianja v9.8]] |
Latest revision as of 06:02, 30 May 2024
Contents
Purpose
Function to return number of available printers and load an array with printer names
Syntax
APRINTERS([<array>])
See Also
Description
The APRINTERS() function returns the number of available printers and loads the array <array> with the printer names. The <array> need not be pre-declared and will be overwritten and resized as required if it already exists.
From Lianja v9.8, the <array> can be omitted. In this case, an array reference is returned to the array _APRINTERS.
Example
aprinters(printerlist) ? printerlist