Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo
Message
De
04/04/2001 08:16:28
 
 
À
03/04/2001 14:18:04
Ben Dekker
Dekker Soft & Hardware
Axel, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Combo
Divers
Thread ID:
00491456
Message ID:
00491771
Vues:
8
Hi Ben.

>> I have use the next properties
controlsource : user.name
rowsource : user.name
Rowsourcetype : 6-field <<

You are going to have problems if your ControlSource and RowSource come from the same table. If you are using the combo to navigate through the table, leave the ControlSource blank.


>> I have a commandbutton which add a record to the table
all the textboxes works fine
but when i made an input in the combo nothings happens in the table <<

If you are adding a new value to the combo box, you have to write a little code to programmatically add the new record to the underlying RowSourcew. Code like this in the combo's valid will do it for you:
IF NOT EMPTY( This.DisplayValue ) AND This.ListIndex = 0
   *** The user typed in a new name
   *** Take Action here to add the new entry to the table
ENDIF
Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform