Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Boxes
Message
From
06/11/2002 14:34:15
 
 
To
06/11/2002 14:16:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00719476
Message ID:
00719495
Views:
16
>I have a combo box named 'freq' with hand entered values of:
>
>'Monthly' for a field name freqtaxpay which stores the value 'M'
>'Quarterly' for a field name freqtaxpay which stores the value 'Q'
>'Semi-Annual' for a field name freqtaxpay which stores the value 'S'
>'Annual' for a field name freqtaxpay which stores the value 'A'
>
>The combo box displays the correct value when navigating through the file. However, if I want to change the value in the combo box, how can I update the field name with the correct 1 character value without issuing a replace command? My hope is to have it saved after selecting the Save button which runs the standard code (plus several additional verifications) used in the base class (similar to how a m. was saved in 2.6). Is there any way to do this? Any help is appreciated.

You didn't say what the RowSource was, but I do this easily with a combobox set to 5 - Array, a two-column array [Monthly;M;Quarterly;Q;SemiAnnual;S;
Annual;A] and BoundColumn set to 2. Set the columnwidth to ##,0.

Chris.
Previous
Reply
Map
View

Click here to load this message in the networking platform