Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Placement of Code
Message
De
05/04/2021 12:28:06
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
04/04/2021 17:45:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01679489
Message ID:
01679504
Vues:
67
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform