Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box on form without open table issue
Message
 
À
30/04/2008 09:45:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01314170
Message ID:
01314260
Vues:
7
>Hi,
>
>I came across the following problem:
>
>I have a combobox with RowSource set to array. The combobox is NOT bound to any field of a cursor or table.
>
>What happens is that if the form where this combobox is places has a cursor to which some other controls are bound, the combobox show the pull-down of values. But if I open the form without the cursor and the form.BindControls is set to .F., the combobox is empty (clicking on pull-down shows no elements). Even though the combo is not bound to any field of the cursor.
>
>I check in the debugger that the array of the RowSource does indeed have valid elements with values.
>
>What could be causing this problem?

It is the expected behavior for form.BindControls = .F.
All controls show their initial values, nothing more.

If you are using form.BindControls = .F. just to speed up the form loading, then set form.BindControls = .T. in the form.activate event.


Good Luck
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform