Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set/Return combobox value
Message
From
07/09/2000 12:45:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Set/Return combobox value
Miscellaneous
Thread ID:
00413651
Message ID:
00413651
Views:
42
I have a dropdown combobox which has a rowsource of an array (two-dimensional). The contents of the combobox is fine. However, I am having problems trying to set the initial value of my combobox equal to the field of an existing record.

This is the code I am using to set the value of the combobox:

ln_pos = ASCAN(ga_tours, lc_tourname)
IF ln_pos > 0
ln_row = ASUBSCRIPT(ga_tours, ln_pos, 1)
ln_column = ASUBSCRIPT(ga_tours, ln_pos, 2)
ln_tour = AELEMENT(ga_tours, ln_row, ln_column)

IF ln_tour < 1 THEN
ln_tour = 1
ENDIF
ENDIF

ln_tour is the controlsource for my combobox. ln_tour contains the correct value for the equivalent array element, however, it does not change to this array element.

I have tried using boundto, value & displayvalue, & have not had any success.

TIA for any suggestions!
Next
Reply
Map
View

Click here to load this message in the networking platform