Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Prioperty Collection

Status
Not open for further replies.

j252ewv

Programmer
Jul 2, 2008
43
0
0
GB
Does any body know if, and how to, it is possible to iterate around the list of properties an Object may have.

E.G if the object personal has three properties , Title, First name, Surname, is it possible to eamine each property and check its name then extract the value?

I hope this makes sense.
 
Here's an example of how to do this with reflection:




I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Exellen but does thisexample need the class or an instance of a class, the resone i ask is when i replace form1 with my object name the error type object not defined pops up.
 
my fault an being dim i get it now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top