Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with combobox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01254815
Message ID:
01254816
Vues:
12
>Today I'm realizing how little I use comboboxes set to a dropdown combo instead of a dropdown list. I have a test form based all on VFP base classes where I'm having trouble getting a combobox set up as a dropdown combo to populate a form property. The ControlSource of the combobox is set to a form property. The form has the combobox and a command button. When I enter something in the combobox and tab to the command button, then press Enter (which gives me a WAIT WINDOW about the value of the form property that the combobox is attached to), it reports no value. Probably this is something simple, but it's escaping me at the moment. What gives?
>
>Russell Campbell


So as you enter a new value in the combo you want the form property to have that value added to it?

But if the combo's source IS the form property then it's sort of contradicting itself, as the property doesn't include that new value already.

Sound to me that you should divorce the source from the property, have it as rowsourcetype 0 (none) and, in the .valid of the combo, add the new value to the property (presumably a form array?), then have code read the array into the .List of the combo (as some code already has done on initialising the form).

Make sense?
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform