Your opinion about a custom structure

B

BlackSun

Hi,
I ask your opinion about how you would do a program which must read
about 30000 lines and after read them (I use VB2005).

The structure of these rows is:
- Item A (max 25 different values)
- Item B (max 40 different values)
- Item C (there is no limit to the numbers)
- Item D (it's the year)

The 4 item are depending one grom another e the search could be done
on one of them...

I was thinking to use a array of a base custom class (my four items)
or a List Of but I don't know.

The problem is that I don't have a primary key to search data.
Any ideas on how to store the data??

Thank you in advance!!

Bye BlackSun
 
F

Family Tree Mike

BlackSun said:
Hi,
I ask your opinion about how you would do a program which must read
about 30000 lines and after read them (I use VB2005).

The structure of these rows is:
- Item A (max 25 different values)
- Item B (max 40 different values)
- Item C (there is no limit to the numbers)
- Item D (it's the year)

The 4 item are depending one grom another e the search could be done
on one of them...

I was thinking to use a array of a base custom class (my four items)
or a List Of but I don't know.

The problem is that I don't have a primary key to search data.
Any ideas on how to store the data??

Thank you in advance!!

Bye BlackSun

Based on the limited info provided, I would create a class to contain
the object, and store them in a list. If you used an array, you have
the problem of determining the size array without reading all the data.
Lists can grow as needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top