SetTopIndex

Started by donnieworld, July 27, 2017, 02:13:37 PM

Previous topic - Next topic

donnieworld

(dcl-ListBox-SetTopIndex HASD_Surveypoints/frmPointExport/lstElev 3)

why doesn't this work? OpenDCL is reporting that NIL value is not allowed.

roy_043

Most likely HASD_Surveypoints/frmPointExport/lstElev is nil.

roy_043

@Moderator: This thread should be moved to the 'Runtime/AutoLISP' section.

donnieworld

The listbox is created with 8 items in the list. I want the 4th item to be the default value set at runtime.

donnieworld

Fixed. I was attempting to set them outside of the initialization function.