vuPrinterName(Nmbr)
vuPrinterName(LONG), CSTRING
Description
Returns the name of the printer defined by the specified index.
Parameters
| Parameter |
Data Type |
Description |
| Nmbr |
LONG |
The index of the printer to query (use vuPrinterCount() to determine the valid range). |
Returns
A CSTRING containing the name of the indexed printer.
Example
FREE(PrinterNames)
vPCount = vuPrinterCount()
LOOP vCounter = 1 TO vPCount
P:Name = vuPrinterName(vCounter)
ADD(PrinterNames)
END
Notes
- Use
vuPrinterCount() to determine the number of installed printers and the valid index range.
- Useful for populating UI elements such as list boxes with installed printer names.