Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Value Capture
Message
 
 
À
16/03/2021 11:57:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01679017
Message ID:
01679041
Vues:
46
>Greetings all,
>
>When users are entering company data (physical address and mailing address), they have an option to click a checkbox that assigns the physical address to the shipping address.
>
>The state portion of teh address are combo boxes populated from a state local view (lv_State) that only has the State_code (i.e. WY) , and pk_st_id (i.e. 002).
>Combo box for State physical address named: cmb_PhyAddr
>Combo box for State mailing address named: cmb_MailAddr
>
>The combo box setting (for both ) are:
> boundToColumn: 2,
>boundTo: T,
>ControlSource: (fk_pk_id),
>rowSource: lv_State.State_Code, pk_state_id
>RowSourceType: 6-Fields
>
>When the user clicks the checkbox to assign the address data to the mailing address data, everything is populating except the combo box.
>
>thisform.cmb_mailAddr.value = thisform.cmb_PhyAddr.value ** current code where nothing happens

Actually this should work, only thing that seems off is that "BoundToColumn" does not exist, it should be BoundColumn = 2. Other than that I reproduced it in test and it works with me.
Perhaps debug the value of thisform.cmb_PhyAddr.value in a wait window just before setting the value.
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform