A1VBCode Forums

How do i save/load?


http://a1vbcode.com/vbforums/Topic14423.aspx

By purpulfantom - 10/7/2005

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
By Nikki - 10/13/2005

A record inside the table at database. It's recording your data information side by side. Wink