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:
01087115
Views:
11
The current value - This.Value.
The typed value - This.DisplayValue


>Please enlighten me. How does this check whether the input value already exists in the look-up, before deciding to write the new value to the table? As I read it, it only checks the current value of the combo. But then again, sometimes I'm dyslexic at reading others' code :-)
>
>Terry
>
>>>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
>>>
>>>>
>>
>>Thank you very much, Sergey. I will try your approach.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform