Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Subscript in Combobox
Message
From
24/08/1999 06:29:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Invalid Subscript in Combobox
Miscellaneous
Thread ID:
00256951
Message ID:
00256951
Views:
61
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
Map
View

Click here to load this message in the networking platform