Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo refusing rowsource - until you resume!
Message
 
 
To
17/10/1999 09:10:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00277304
Message ID:
00277430
Views:
26
>it gets worse!
>
>it now transpires that the filter I require for the popup to operate on is cleared by whatever is causing the "operator/operand mismatch"
>
>so now, in order to make the thing work at all, I switch my errorhandling routine on and use the following code:
>
> cbopop=.t. && this variable tells the errorhandler to ignore error 107 (operator/operand mismatch)
> thisform.cbopoplist.rowsource=thisform.fieldlist && this line causes the error, and clears the current filter. It then runs off to the error handler which tells it to ignore it if its 107
> thisform.cbopoplist.rowsource=thisform.fieldlist && the code is now accepted
> cbopop=.f. && now we switch of the "ignore 107" flag
> set filter to &filtexp && and here we reset the filter which disappeared above.
>
>
>all of which works, but has to be a contender for Bodge of the Week, if not Year!
>
>Harry

Is ThisForm.FieldList an array property of the form? I recommend making it a property of the combo instead. For an example of what I do, download my combo class from the files section -- File #9596. This is actually a dropdown combo instead of a dropdown list, but you can change that. I also use a select sql to populate my combo source.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform