Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use combo box bound to field
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01087103
Message ID:
01087108
Views:
16
This message has been marked as the solution to the initial question of the thread.
Try
* Combo Valid
IF NOT EMPTY( This.DisplayValue )  ;
		AND NOT (ALLTRIM(This.DisplayValue) == ALLTRIM(This.Value))
	INSERT INTO mytable VALUES (This.DisplayValue)
	This.Value = This.DisplayValue
	THIS.Requery()
ENDIF
>
>I have a combo box bound to a field (ControlSource has the field name), property .BoundTo is .T.. The RowSourceType is 6 - Fields and the RowSource is names of the fields. The style of the combo is 0 - DropDown Combo. I would like the user to be able to enter a value that is not in the RowSource cursor.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform