Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anybody tell me?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00118048
Message ID:
00118049
Views:
23
>
>I used VFP3.0B. Does the following code correct if it run in VFP5.0?
>The textbox is bound to a field which data type is numeric.
>
>DEFINE CLASS txtTest AS Textbox
>     PROCEDURE Valid
>          IF This.Text > '90'              && Is it correct?
>               Wait 'Range Over' Window NoWait NoClear
>               RETURN 0
>          ENDIF
>     ENDPROC
>ENDDEFINE
>
If the field will be numeric, you would probably
1. default the value to 0
2. test for This.Value > 90 instead of This.text > '90"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform