Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a Combo box show a value not in the array?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00829585
Message ID:
00833829
Views:
30
Thanks Marcia,

I have had to make another work around and will share it with you later - but I'll give this a try and let you know.


>Hi Mike.
>
>Actually this is not my worry now. When I unbind it in the init, the combo's values are no longer saved in the table.
>
>Did you remember to call UpdateControlSource() from the combo's Valid()?
>
>
>LOCAL lcAlias, lcControlSource
>WITH This
>  IF ! EMPTY( .cControlSource )
>    lcAlias = JUSTSTEM( .cControlSource )
>    IF UPPER( LEFT( lcAlias, 4 ) ) == 'THIS'
>      lcControlSource = .cControlSource
>      STORE .DisplayValue TO &lcControlSource
>    ELSE
>      REPLACE ( .cControlSource ) WITH .DisplayValue IN ( lcAlias )
>    ENDIF
>  ENDIF
>ENDWITH	
>
Previous
Reply
Map
View

Click here to load this message in the networking platform