Here is one way where you can use Collections to hold the information:
Code:
Option Explicit
Dim Username As Collection
Private Sub Command1_Click()
MsgBox Username(Winsock1.Name)
End Sub
Private Sub Form_Load()
Set Username = New Collection
Username.Add "Matthew", Winsock1.Name
End Sub
Not exactly what you want, but something like it. You can use the Index as well:
Code:
Option Explicit
Dim Username As Collection
Private Sub Command1_Click()
MsgBox Username(CStr(Winsock1(0).Index))
End Sub
Private Sub Form_Load()
Set Username = New Collection
Username.Add "Matthew", CStr(Winsock1(0).Index)
End Sub
Or you can use the Tag property, place some individual index number and then use that. However remember Tag stores information as a String and Collections make difference with a numeric and string indexes.