INT | TEXT %GetPrinterName( INT in _printerIdx INT in _propIdx := 0 ) |
_printerIdx | Poradové číslo tlačiarne, ktorej meno sa má zistiť (1, ...). |
_propIdx | Nepovinný parameter - typ informácie, ktorú funkcia získava. Možné hodnoty:
|
BEGIN ; INT _nrPrinters INT _pIdx ; TEXT _printerFullName TEXT _printerName TEXT _serverName ; zistenie počtu tlačiarní v operačnom systéme _nrPrinters := %GetPrinterName(-1) ; zistenie informácií o každej tlačiarni FOR _pIdx=1 TO _nrPrinters DO_LOOP _printerFullName := %GetPrinterName(_pIdx, 0) _printerName := %GetPrinterName(_pIdx, 1) _serverName := %GetPrinterName(_pIdx, 2) END_LOOP ; END |