Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to add dynamically values in a comb
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00297972
Message ID:
00298083
Views:
15
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform