Question Protected by gnat
    Tweeted twitter.com/#!/StackProgrammer/status/612236149164244995
    Post Reopened by World Engineer
    Post Closed as "primarily opinion-based" by Telastyn, Dynamic, Doc Brown, Robert Harvey, World Engineer
4 edited title
| link

Should I use a list or an array?

3 formatting, personal stuff cleanup
source | link

I'm working on a windows form to calculate UPC for item numbers. 

I successfully create one that will handle one item number/UPC at a time, now I want to expand and do it for multiple item numbers/UPCs. I have started and tried using a list, but I keep getting stuck. I created a helper class:

I have started and tried using a list, but I keep getting stuck. I created a helper class:

Any suggestions and guidance is greatly appreciated.

I'm working on a windows form to calculate UPC for item numbers. I successfully create one that will handle one item number/UPC at a time, now I want to expand and do it for multiple item numbers/UPCs. I have started and tried using a list, but I keep getting stuck. I created a helper class:

Any suggestions and guidance is greatly appreciated.

I'm working on a windows form to calculate UPC for item numbers. 

I successfully create one that will handle one item number/UPC at a time, now I want to expand and do it for multiple item numbers/UPCs.

I have started and tried using a list, but I keep getting stuck. I created a helper class:

2 fix spelling
source | link

Shoud Should I use list or array?

I'm working on a windows form to calculate UPC for item numbers. I successfully create one that will handle one itemnumberitem number/UPC at a time, now I want to expand and do it for multiple itemnumbersitem numbers/UPCs. I have started and tried using a list, but I keep getting stuck. I created a helper class:

Then I got started on my code, but the issue is that the process is incrementallyincremental, meaning I get the itemnumberitem number from a gridview via checkboxes and put them in the list. Then I get the last UPC from the database, strip the checkdigit, then increment the number by one and put it in the list. Then I calculate the checkdigit for the new number and put that in the list. And here I already get an Out of Memory Exception. Here is the code I have so far:

Is this the right way to go about it, using a list, or should I be looking at a different way? Any

Any suggestions and guidance is greatly appreciated.

Shoud I use list or array?

I'm working on a windows form to calculate UPC for item numbers. I successfully create one that will handle one itemnumber/UPC at a time, now I want to expand and do it for multiple itemnumbers/UPCs. I have started and tried using a list, but I keep getting stuck. I created a helper class:

Then I got started on my code, but the issue is that the process is incrementally, meaning I get the itemnumber from a gridview via checkboxes and put them in the list. Then I get the last UPC from the database, strip the checkdigit, then increment the number by one and put it in the list. Then I calculate the checkdigit for the new number and put that in the list. And here I already get an Out of Memory Exception. Here is the code I have so far:

Is this the right way to go about it, using a list, or should I be looking at a different way? Any suggestions and guidance is greatly appreciated.

Should I use list or array?

I'm working on a windows form to calculate UPC for item numbers. I successfully create one that will handle one item number/UPC at a time, now I want to expand and do it for multiple item numbers/UPCs. I have started and tried using a list, but I keep getting stuck. I created a helper class:

Then I got started on my code, but the issue is that the process is incremental, meaning I get the item number from a gridview via checkboxes and put them in the list. Then I get the last UPC from the database, strip the checkdigit, then increment the number by one and put it in the list. Then I calculate the checkdigit for the new number and put that in the list. And here I already get an Out of Memory Exception. Here is the code I have so far:

Is this the right way to go about it, using a list, or should I be looking at a different way?

Any suggestions and guidance is greatly appreciated.

1
source | link