General information
Category:
Forms & Form designer
Title:
Invalid Subscript in Combobox
Hello all,
My form has a combo box with Rowsourcetype=alias. I access data from SQL Server into a cursor MyCursor with reccount()=67110.
In the Combo's inteactiveChange event, i write code :
if this.listindex>0 then
lcText=this.list(this.listindex)
endif
When i select item 67100 in the combo in runtime, i get error : invalid subscript ( trace window, i see .listindex=67100 and .listcount=67110 ).
However, i replace with code :
lcText=this.value
then i don't get error above. What's the problem ?
Thank in advandce.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only