Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this code. I get an error.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
What's wrong with this code. I get an error.
Miscellaneous
Thread ID:
00350228
Message ID:
00350228
Views:
49
DO CASE
CASE m.stype = 1
FOR i = 1 TO THISFORM.lstSlist4.ListCount
IF LEFT(THISFORM.lstSlist4.List(i),LEN(ALLTRIM(m.stext))) ;
!= alltrim(m.stext)
THISFORM.lstSlist4.RemoveItem (THISFORM.lstSlist4.ListIndex)
ENDIF
ENDFOR

I have this code in a command button that does a partial search on a drop-down list in my combobox. If the partial search text does not match the item in the combobox list, I want to Remove the item from the combobox. But I get an error on the THISFORM.lstSlist4.RemoveItem command line. Am I even close? I have never done this before. I think I am close. Help please. And thank you.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform