Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box/Views
Message
From
16/04/1999 13:06:28
 
 
To
16/04/1999 00:37:24
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00207519
Message ID:
00209076
Views:
18
OK, having the code in the _Assign methods is nothing more than good OOAD. It's not a requirement in your case. See, _Assign code is fired whenever you assign a value to the parent property. This is why Assigns are pre-populated with the code you asked about (btw, leave that code in there). By using the _Assigns rather than using the InteractiveChange of the individual controls is that by using _Assign, you are guranteeing that the right actions take place no matter where and how the properties are modified.


>
>Once again, it is late at night and I got a lot accomplised tonight on my views for my office search form. I definitely had some problems there to take care of, which I believe I did.
>
>My question revolves aroud something I forgot to implement that you wrote, which were the two methods, CurrentState_Assign and CurrentCounty_Assign.
>
>You said to create these at the form level and put code into two methods to REQUERY the county and city views and refresh the combos those views are attached to:
>
>Would that code be the same code in my interactivechange event for my state and county combo boxes?
>
>In those combos' interactivechange event, I have:
>
>A. state combo:
>
>THISFORM.CurrentState = THIS.Value
>=REQUERY("county_search_pview")
>=REQUERY("locality_search_pview")
>THISFORM.cmbcounty_search.refresh()
>THISFORM.cmblocality_search.refresh()
>
>B. County combo:
>
>THISFORM.CurrentCounty = THIS.Value
>=REQUERY("locality_search_pview")
>THISFORM.cmblocality_search.refresh()
>
>C. I do not have code in my locality (city) combo box interactivechange event
>
>
>
>Do I have to place this code back into the CurrentState_Assign & CurrentCounty_Assign methods to make my form/combos/pviews work? I'm just note sure how these methods fit into the picture.
>
>One more note, when I created my CurrentState_Assign and CurrentCounty_Assign, it was placed into my properties form with code in it already.
>
>It said>
>
>lparameters vNewVal
>This.CurrentState_Assign = m.vNewVal
>
>I didn't put that code there.... That just showed up as soon as i created the new method. Should I delete that and enter my code? If I enter code in the Assign, do I take it out of the interactivechange event, or should I just leave it alone?
>
>Thanks for any additional guidance
>
>Jason
------------------------------------------------
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
Next
Reply
Map
View

Click here to load this message in the networking platform