OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: andrew.nao1 on August 17, 2012, 07:55:58 AM

Title: selecting with combo boxes
Post by: andrew.nao1 on August 17, 2012, 07:55:58 AM
hi gang, its been a while and my other login info i cant access because the email i used no longer exists so i had to make another login.


anyway i need a bit of a refresher course.
I have a combo box that show a list of my printers
what function do i use to set a variable to the printer i select?

here is a snippet of code but i think i have the last line of this snippet wrong


(setq printers_list (reverse (dos_printers)))
(dcl_Control_SetList dwgbrowser_Form3_ComboBox1 printers_list)
(SETQ SET_PRINTER (dcl_ComboBox_GetCurSel dwgbrowser_Form3_ComboBox1))


thanks
Title: Re: selecting with combo boxes
Post by: Fred Tomke on August 17, 2012, 01:28:50 PM
Hi, I would have a try with GetLBText (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/ComboBox/GetLBText.htm).

Regards, Fred