![]() |
|
[C#] Loading lists with database - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Loading lists with database (/showthread.php?tid=5848470) |
Loading lists with database - Tunabish - Jun 12, 2018 Hey guys, I have 2 lists, 1 of them is a schedule, which contains a list with exercises. I want to save those in a database and load them back on startup. I made it with with only schedule names, but the part where I start adding exercises to the schedules doesn't work, and now I'm getting an error at line 80 Code System.IndexOutOfRangeException: 'Index was outside the bounds of the array.'This is my database class pastebin.com/m1hKH8i7 Hope someone can help me out with this problem c: RE: Loading lists with database - HFDone - Jun 12, 2018 if it this line probably type mistake theres no query exName fix it var columnA = reader["exName"]?.ToString(); RE: Loading lists with database - Tunabish - Jun 12, 2018 Solved the problem, thanks anyway c: RE: Loading lists with database - arvustpremium - Jun 17, 2018 If you need anymore help don't be afraid to PM me. Is this a college assignment? |