Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you find the problem?
Message
From
08/10/2001 20:19:02
 
 
To
08/10/2001 17:53:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00565709
Message ID:
00565754
Views:
18
Hiya Vicki!

How's Tallahassee? Anyway, two things, one of which Sergey pointed out: "This" in the filter is being scoped differently. Switch it to ThisForm. Secondly, create a Form property for mStatus and not a Public var. You can do it at design time or using AddProperty at runtime. You can populate it in the Init of the form.

>I have a fairly simple form that displays a list of records with one filter. There is a set of two radio buttons to change the filter. When you click on one of the buttons, the interactive change method does the following:
>
> thisform.mstatus = iif(this.value = 1,"A","C")
>
>There is an mstatus_assign method that fires when we change mstatus:
> usual parameter
> this.mstatus = m.newval
> set filter to this.mstatus
> thisform.grid1.refresh()
>
>Seems simple, but everytime I do it, I get a message "Property mstatus is not found." Mstatus is defined as a public variable on the form. The variable this.mstatus has the correct value in it when I check prior to the grid refresh. The form and grid are both staight from the standard libraries, no new code in refresh or anything like that. What bonehead thing am I doing or overlooking???
>
>P.S. I will gladly email this code with a sample table set if you'd like to see it; it's all very small. But it's driving me crazy....
>
>TIA!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform