Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box/Views
Message
De
14/04/1999 00:27:42
 
 
À
13/04/1999 23:46:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00207519
Message ID:
00208085
Vues:
25
Hi Jason ---

First off, you can change the default to whatever you like. Since the Combobox uses a character value, change the default property values to "", or blank.

To change the value of the property to the value of the combobox, place the following code in the InteractiveChange event of affected comboboxes:

THISFORM.CurrentState = THIS.Value
=REQUERY("county_view")
=REQUERY("city_view")
THISFORM.Countycombo.Refresh()
THISFORM.CityCombo.Refresh()

This is of course for the state combo. Use CurrentCounty for the County combo and, of course, you don't want to requery the county view in the county combo.

If you're in VFP6, you can move the Requery and Refresh code to CurrentState_Assign and CurrentCounty_Assign methods.




>
>I have a question regarding your last response I was hoping you could elaborate on a little bit.
>
>Regarding the whole issue of refreshing my combo boxes to reflect specified values. You said to Create two form properties, which I did (at the form level). The default was placed in as .F. for each new property.
>
>However, I am unsure of the next step, which is changing "CurrentState" to the Value of the combo box (cmbstate). The value is "cjurisdiction_name".
>
>I went to the interactivechange event of the combo box, not the form, but I do not know what to place in the event for code.
>
>I need to do to this for both State and County combo boxes.
>
>How do I "change" CurrentState, which is a property at the form level, to the Value of the combo box?
>
>Thanks for any additional help.
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform