Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Value Capture
Message
From
17/03/2021 07:12:18
 
 
To
16/03/2021 11:57:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01679017
Message ID:
01679041
Views:
47
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform