You are on page 1of 1

Script : constructor for

returns long

string printers[]
int rtn, i, nbPrinters
rtn = RegistryKeys &
("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers", &
printers)
nbPrinters = UpperBound(printers)
FOR i = 1 TO nbPrinters
ddlb_1.addItem(printers[i])
NEXT
String ls_fullstring=PrintGetPrinter()
String ls_name, ls_driver, ls_port, ls_tempp
Long ll_place
ll_place=pos (ls_fullstring, "~t")
ls_name=left(ls_fullstring, ll_place -1)
ls_tempp=mid(ls_fullstring, ll_place +1)
ll_place=pos (ls_tempp, "~t")
ls_driver=left(ls_tempp, ll_place -1)
ls_port=mid(ls_tempp, ll_place +1)
this.text=ls_name
st_5.text=this.text

You might also like