Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tab doesn't fire DropDown List Valid?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00427059
Message ID:
00427068
Views:
13
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform