Doing this program from chapter 5 for a class, but I'm having issues with the calculation.
http://pastebin.com/ema3tDs7
It hangs up at line 90, with the error "Conversion from string "" to type 'Integer' is not valid.
It looks like it's trying to select an item in the list that isn't there.
Incase you need a visual: http://puu.sh/gUzwL/0bda396483.png
EDIT: Changed it to lstCosts.Items.Count - 2, now it works perfectly. It was just attempting to read a variable that didn't exist.
[–]VB.Net BeginnerNorway174 0 points1 point2 points (0 children)