Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to add dynamically values in a comb
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00297972
Message ID:
00298083
Vues:
14
Hi JR,

>Question is, what is the best way to grab the value typed by the user and adding it to the array if the combo box.

I would put this code in the LastFocus() or Valid() (ThisForm.aItems is the controlsource:
if ascan(thisform.aItems, this.displayvalue) = 0
	dimension thisform.aItems[alen(thisform.aItems) + 1]
	thisform.aItems[alen(thisform.aItems)] = this.displayvalue
endif
this.requery()
>This must work without knowing the array.

What do you mean by this? The name of the array, or its contents?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform