Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filtering Combo Box Problem
Message
From
28/07/1998 18:58:46
 
 
To
28/07/1998 10:14:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00121953
Message ID:
00122143
Views:
22
Hi Rixon.
>
>Why does publishe.prefix=this.cFilter work when publishe.prefix=this.parent.combo1.value doesn't?

It's publishe.prefix=(this.cfilter). You need the parentheses so VFP will evaluate the contents of the expession. Like David said, you could have used macro expansion in your original sql and said "publishe.prefix = &lcFilter". It's 6 of one and half a dozen of the other really. But I seem to recal that back when I was playing around with this, I needed to have the RowSource of the combo established before the When (or the GotFocus) event. So using a property of the combo made it easy...I didn't have to worry about the order of instantiation of the objects. That may be why publishe.prefix=this.parent.combo1.value didn't work.

>
>Any reason I need this in the When method instead of just putting it at the beginning of the GotFocus method?

No special reason <g>. It's just my preference to do it that way.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform