Every TEXT _GotFocus () event is returning to his own name
Time:09-16
Every TEXT _GotFocus returned to his own () event name
Suppose I 80 text (array controls, the name for the system default)
Dim mm Private Sub Text1_GotFocus () Mm=Mid (Text1. Name, 5, 2) End Sub
Private Sub Text2_GotFocus () Mm=Mid (Text2. Name, 5, 2) End Sub ,,, To write 80 GOTFOCUS events
Is there a simple code, I finally take the text as long as the back of the digital (default) so the Name used system
CodePudding user response:
Use control array is not just to solve problems
Too interface design instead of trouble, if you really want to continue to heap garbage enough, in addition to open a small program, loop 80 times, generate the code,
CodePudding user response:
The system default name, why not use an array? Easy and convenient