Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array of textboxes
Message
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Passing an array of textboxes
Miscellaneous
Thread ID:
00213215
Message ID:
00213215
Views:
55
I am trying to pass an array of textboxes. What am I doing wrong...
Sub changetextcolor(textboxname() As TextBox)
     textboxname(1).BackColor = RGB(255, 0, 0)
    textboxname(2).BackColor = RGB(0, 255, 0)
End Sub
Private Sub Command1_Click()
    Dim txtbxs(2) As TextBox
    txtbxs(0) = Me.Text1
    txtbxs(1) = Me.Text2
    Call changetextcolor(txtbxs())
End Sub
Next
Reply
Map
View

Click here to load this message in the networking platform