Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run time add value inside combobox
Message
De
09/07/2002 08:44:36
 
 
À
09/07/2002 05:58:22
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00676500
Message ID:
00676550
Vues:
19
in my form i have one field payment mode so every time that payment mode is
differnt (ex:- one month,45 days....etc.)so i need when new payment mode come
that time user also add this value in combobox
in my form paymentmode as a combobox


Use code like this in the Valid method of the combo box:
IF NOT EMPTY( This.DisplayValue ) AND This.ListIndex = 0
   *** This means that the user has added a new item to the combo box
   *** You must take action here to add it to the control's internal list
   *** If the RowSOurceType is 2-Alias or 6-Fields you must first add
   *** some code to add the new item to the underlying data
   *** If the combo has a RowSourceType of 0-None, you can use its AddItem()
   *** method to add it to the list
   This.Requery()
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform