OnSelChange Variables?

Started by Shade, April 15, 2008, 10:02:57 AM

Previous topic - Next topic


I am still learning ODCL and I am little confused about the following command;

(defun c:DScale_DScale_Set_ComboBox_OnSelChanged (nSelection sSelText /)
     (dcl_MessageBox "To Do: code must be added to event handler\r\nc:DScale_DScale_Set_ComboBox_OnSelChanged" "To do")

What does the nSelection sSelText pertain to in the code?

Any help is appreciated... 8)


nSelection is the index of the selected item - i.e. it's numeric location in the comboBox
sSelText is the TextString of the selected Item

This is useful when you want the users interaction with the comboBox to change values of other controls on the form.  If you have a comboBox that lists Xrefs and when it changes you want to update a label control that shows the path, those values can be sent to a sub to obtain the path and update the control.
James Buzbee
Managing Memeber
Black Horse Development, LLC


Thanks for the help, I understand now.