Difference between revisions of "APRINTERS()"

From Lianjapedia
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
  
 
==Syntax==
 
==Syntax==
APRINTERS(<array>)
+
APRINTERS([<array>])
  
 
==See Also==
 
==See Also==
[[GETPRINTER()]], [[SET CONSOLE]]
+
[[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

Purpose

Function to return number of available printers and load an array with printer names

Syntax

APRINTERS([<array>])

See Also

GETPRINTER()

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