Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object reference to the current control
Message
 
À
04/06/2002 19:17:41
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Divers
Thread ID:
00664527
Message ID:
00664923
Vues:
24
>You could put the following in your code then:
>
>
>Private Sub txtName_LostFocus()
>
>   Call CleanupText(txtName)
>
>End Sub
>
>Private Sub CleanupText(txtBox as TextBox)
>
>   txtBox.Text = Ucase(txtBox.Text)
>
>End Sub
>
>
>A little cumbersome but it reduces the code in each LostFocus event. If there is a better way to do this then I don't know how.

The amount of code doesn't concern me as much as having to type in every control's name. But since I have already had to open every control's event, I suppose it isn't much more trouble. I miss OOP.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform