Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Loading lists with database

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:
if it this line probably type mistake theres no query exName fix it
var columnA = reader["exName"]?.ToString();
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
Solved the problem, thanks anyway c:
If you need anymore help don't be afraid to PM me.
Is this a college assignment?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by JuicyProgrammingOct 25, 2016 01:48 PM 1 205 Oct 25, 2016 01:48 PM
Last Post: itcorp
[.NET] by Mr. CarterDec 14, 2014 06:34 AM 10 329 Dec 14, 2014 06:34 AM
Last Post: maruata
[Java] by A N K E S HJul 29, 2012 12:11 PM 5 196 Jul 29, 2012 12:11 PM
Last Post: feuerloewe