Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tab doesn't fire DropDown List Valid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00427059
Message ID:
00427068
Vues:
14
>When I tab through a dropdown list, it does not appear my VALID is firing. How can I force a used to select from the dropdown list?

Use 'NODEFAULT' in LostFocus event to prevent losing focus when value not selected, like following:
  procedure MyCombobox.LostFocus
    if empty(this.Value)
      WAIT WINDOW "SELECT VALUE FIRST!!!" NOWAIT
      NODEFAULT
    endif
  endproc
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform