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:
00832787
Views:
22
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
Next
Reply
Map
View

Click here to load this message in the networking platform