Originally Posted by reez88
Public Class clsMyProcedure
Dim _us as String, _id as Integer
Public Sub New (us as String, id as Integer)
Public ReadOnly Property UserName as String
Public ReadOnly Property UserID as Integer
Public Function Overrides ToString () as String
You store a collection of objects clsMyProcedure and you get the UserName from ToString Function. You also have available the UserID from the UserID property.
You can declare a generic procedure like a list:
Dim myList as new List(Of clsMyProcedure)
myList.Add(New clsMyProcedure("John", 1))
I hope that help you.