D
D Miller
Here is today's challange...
I would like to scan though the properties of the class and take actions
based on the name of the property.
Something Like
Dim Work as new Test
dim Item as ????
for each Item in Work
select case Item
case "FName"
....
case "LName"
....
end select
Next
That is the general idea of what I am trying to accomplish, but I obviouly
need the syntax... Is this possible and if so how?
Thanks,
David
Public Class Test
Private mFName as string
Private mLName as string.
Property FName as string
get
return mFName
end get
set (byval Value as string)
mFName = value
end set
end property
Property LName as string
get
return mLName
end get
set (byval Value as string)
mMName = value
end set
end property
end class
I would like to scan though the properties of the class and take actions
based on the name of the property.
Something Like
Dim Work as new Test
dim Item as ????
for each Item in Work
select case Item
case "FName"
....
case "LName"
....
end select
Next
That is the general idea of what I am trying to accomplish, but I obviouly
need the syntax... Is this possible and if so how?
Thanks,
David
Public Class Test
Private mFName as string
Private mLName as string.
Property FName as string
get
return mFName
end get
set (byval Value as string)
mFName = value
end set
end property
Property LName as string
get
return mLName
end get
set (byval Value as string)
mMName = value
end set
end property
end class