local lcPrinter as String, lnI as Integer, lcPort as String local array laPrinters[1] lcPrinter = getprinter() aPrinters(laPrinters) && Use ascan to search for the selected printer lnI = ascan(m.lcPrinter, laPrinters) && check syntax on this one for correct flags lcPort = laPrinters[m.lnI,3] && Check this alsoI write strictly from memory, you would need to check syntax for the functions.