COS()

APrinters()

This function asks Windows about installed printers and stores the results in an array.

Usage

nPrinterCount = APrinters( ArrayName )

Parameter

Value

Meaning

ArrayName

Name

Array in which to place printer information.

nPrinterCount

Positive Number

The number of rows in the array, which equals the number of installed printers.

0

No printers are installed.


The array that is created has two columns. The first column contains the name of the printer (as shown in the Printers applet in the Control Panel) while the second contains the name of the port for which the printer is installed. Both columns are character.

Using APRINTERS() doesn't guarantee that a printer is actually connected and available, only that it was once installed in Windows. You still have to cope with broken, missing, or off-line printers.

Example

? APrinters(aPrinterList)

See Also

Array Manipulation, ANetResources(), GetPrinter(), PrintStatus(), PrtInfo(), Set Printer, Sys(13), Sys(1037)


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net