Hello everyone I've been working on this for hours trying to fix it to no avail so i decided to look for some online help and found this forum by chance.
this is basically the piece of code:
there is nothing wrong with the values of countcardsquantity and cardquantity[i] since i tested them separately but anyway countcardsquantity = 140 if you were wondering.Code://get cards quantities int[] cardm1 = null; i = 1; while (i < countcardsquantity) { int m = i - 1; cardm1[m] = int.Parse(cardquantity[i]); i = i + 2; }
Anyway after trying to put message boxes everywhere i realized that anything after this line of code
wasn't showing the message box even if the message box code is actually outside the loop so i m guessing something's wrong with this line I just have no idea what the problem is...Code:cardm1[m] = int.Parse(cardquantity[i]);
and by the way commenting out the line made everything else work normally. So yeah I've been wondering for a while what is wrong with that simple line?
Thank you, appreciate the help.




Reply With Quote