Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a Combo box show a value not in the array?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00829585
Message ID:
00832787
Vues:
23
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	
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform