Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Placement of Code
Message
From
05/04/2021 12:28:06
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
04/04/2021 17:45:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01679489
Message ID:
01679504
Views:
66
You should add this as a new method to your textbox class. In the classes' valid, call the separate method. All textboxes will inherit. You can override if needed. You don't end up coding every one.

>Howdy and greetings all,
>
>I have the below listed code in my textbox Interactive Change box. My goal is to visibly place an error box around the textbox if an data entry error occurs, in think case, if it's empty. Would a better placement of this be in the Valid method?
>
>IF EMPTY(ALLTRIM(this.Value))
> This.parent.First_Name_Error_Shape.Visible = .T.
>ELSE
> This.parent.First_Name_Error_Shape.Visible = .F.
>ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform