0

I've created a game and want to record highscores through textboxes. I've thought using an Access database may be one idea but seems quite complicated at my level of programming. I'm looking for some ideas or an alternative to using access. If not then some way i could go about using an access database?

5
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by JOSheaIV
0

Have you looked at saving the high score table to a project settings value.
Or saving to a simple csv file on disk.

0

I've looked around and I'm going to try and use sql, I'm a student so I'm only just learning the basics of C#. Would i be able to order my table highest integer to lowest so I could reference a cells for my text boxes?

1

Take a look at adatapost's above code snippet. That statement will sort your selected values from highest to lowest. The table itself may not be ordered that way, but it doesn't need to be when you use the ORDER BY statement.

0

Oh my bad, I didn't realise that was a line of code. Would that work for access, sql's not working for me?

0

I believe it should. Most keywords work across a good chunk of the databases out there. Give it a shot and see if it works for you.

0

Just import and export from a text file. I myself and not very familiar with database, so I use use txt files and build classes that read and export the stuff into an array I can display

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.