TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Steve Cordon
NA
9
0
Relation between class attributes and variables.
Jul 13 2009 7:10 AM
Hi guys,
I'm just getting used to OOP and classes etc. I'm really confusing myself.
I have some .csv which contains the column titles (FirstName, SecondName, Address)
I wish to make a class called Person for each row. This would obviously allow me to store Person.FirstName etc.
This bit is fine.
My problem comes because other .csvs have these columns in different order e.g (SecondName, FirstName, Address)
I want to be able to identify which column is "SecondName" e.g Column 1 or 2? and then assign this to the Person class accordingly. I am unsure of the best way to go about referencing column number and the person class.
I hope this makes sense and I appreciate all help :)
Many Thanks
Reply
Answers (
2
)
Need help with a count down timer
unsortable collection