Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsNumeric - VFP analogue?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00307922
Message ID:
00308505
Views:
52
Nadya,

In the Gotfocus Of the container you set teh defautl proeprty of the button to .F. and in the keypress of each textbox you put;
IF nKeyCode = 13 && Enter
   IF EMPTY(This.Value)
      NODEFAULT
      Thisform.MethodCalledByTheDefaultButton
   ENDIF
ENDIF
In the LostFocus of each textbox you put:
Thisform.DefaultButton.Default = .T.
You might want to add a property to the textbox class to hold the name of the default button so it isn't hardcoded.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform