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:
00308507
Views:
47
Jim,

And you call it simple????????!

>
>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform