Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


How do i save/load?


How do i save/load?

Author
Message
purpulfantom
purpulfantom
Forum God
Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)

Group: Forum Members
Posts: 21, Visits: 43
I took a course in Visual Basic, and read a instructional book on it, so i thought i'd be pretty well informed.



But im not.



Will somebody please tell me in simple English how to fix my problem:



I have created a crappy, text-based, Football Mangement game for a client (ok, so he's a football obsessed friend of mine and isn't paying me, but i gotta start somewhere!). This involves saving some 2000 items of data in a way that the game can read.



Basically, I want to save a player name (lets call him "bob"), his skill level (eg. 8), the position he plays (eg Defence) and which team he is currently asigned to.



I assumed the easiest method would be by creating records, but i can't work out how to tell it to load his name, skill, position and team as seperate things.





I quit this project, and tryed something else, and immediently ran into simailar problems: this time I needed a name, x y z co-ordinates and about 800 encripted lines of code (its a game that you can write ur own files for in a very simple language). I can't gt the program to tell the difference!





If someone could create an exaple program, and show me the code, I would be very grateful. Even more so if you told me what the complex bits are doing!



Thx in advance



-------------------------------------------------

I'm not retarded! I'm special!
Nezoic
Nezoic
Forum God
Forum God (351 reputation)Forum God (351 reputation)Forum God (351 reputation)Forum God (351 reputation)Forum God (351 reputation)Forum God (351 reputation)Forum God (351 reputation)Forum God (351 reputation)Forum God (351 reputation)

Group: Forum Members
Posts: 1, Visits: 2
Need more information.

What database are you using? or are you just reading/writing to a file?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/html/deexawritingmessagestofilepwd.asp

msdn is your friend, look up vb.net read file ect...

However you might want to think about using a database, as they're much more efficent when it comes to reading a lot of data.

purpulfantom
purpulfantom
Forum God
Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)Forum God (3.4K reputation)

Group: Forum Members
Posts: 21, Visits: 43
I know that this is gonna sound like a really nooby question but:



whats the difference between a record and a database?



-------------------------------------------------

I'm not retarded! I'm special!
Nikki
Nikki
Forum God
Forum God (9.4K reputation)Forum God (9.4K reputation)Forum God (9.4K reputation)Forum God (9.4K reputation)Forum God (9.4K reputation)Forum God (9.4K reputation)Forum God (9.4K reputation)Forum God (9.4K reputation)Forum God (9.4K reputation)

Group: Forum Members
Posts: 63, Visits: 83
A record inside the table at database. It's recording your data information side by side. Wink

MJStone
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search