OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: donnieworld on July 27, 2017, 02:13:37 PM

Title: SetTopIndex
Post by: donnieworld on July 27, 2017, 02:13:37 PM
(dcl-ListBox-SetTopIndex HASD_Surveypoints/frmPointExport/lstElev 3)

why doesn't this work? OpenDCL is reporting that NIL value is not allowed.
Title: Re: SetTopIndex
Post by: roy_043 on July 28, 2017, 01:02:04 AM
Most likely HASD_Surveypoints/frmPointExport/lstElev is nil.
Title: Re: SetTopIndex
Post by: roy_043 on July 28, 2017, 01:03:59 AM
@Moderator: This thread should be moved to the 'Runtime/AutoLISP' section.
Title: Re: SetTopIndex
Post by: donnieworld on July 28, 2017, 07:27:28 AM
The listbox is created with 8 items in the list. I want the 4th item to be the default value set at runtime.
Title: Re: SetTopIndex
Post by: donnieworld on July 28, 2017, 07:49:06 AM
Fixed. I was attempting to set them outside of the initialization function.