473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

help with save function in vb.net needed

Hi I'm new to the whole forum thing but I have a question that I need answered.
I would like to ask if anyone can explain to me how to create a save function in vb.net.

I'm am trying to create a game using vb but don't know how to create a "save game" function. I was told something about saving to files but don't really understand it.

I'm a college first year and still a bit new to vb.net coding and have no experience with any other language, so please make it as simple as you can.

Thank you
Oct 17 '11 #1
2 1639
!NoItAll
297 100+
Otaking - your game would be made up of dozens of structures and classes and each and every one would need to be saved. Since we have no idea what those structures and classes look like no one can be of any help. You might as well be asking how to drive a car on this forum...
My suggestion is that you look at serialization and make your structures and classes all serializable. Doing so will allow you to write them out as an XML file - and then repopulate those same structures and classes through deserialization.
Oct 23 '11 #2
I'm sorry if this makes me seem like an idiot but I only learned basic vb, (variables, if statements, loops, basic things) I don't really understand what you mean
Oct 23 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: leegold2 | last post by:
I have been looking for a php word wrap function. I know there's an official PHP function but I've tried that and many of the functions contributed on that php.net page and none do what I...
10
by: tgh003 | last post by:
So lets assume I have a list of tasks in db table (table looks like: ID, task, sort) And I want to reorder the task list without updating all the records in the table. I dont want to run a sql...
5
by: Jean-Daniel Gamache | last post by:
Hi, I want to be able to call a function specified at run-time (in a string). How can I do that in C++ ???? ie: char myFunctionName = "myFunction"; void myFunction () {
1
by: Aravindhan | last post by:
Hi.... I have created an Access form with a few text boxes,save and close button. The save button calls a function(funcSave) to collect data from the text boxes of the form and insert into a...
3
by: Stephen Sprunk | last post by:
On a project I'm working on, I ran across the following macros: /* assume s is struct stream *, s->p is char, v is unit16_t or uint32_t */ #define in_uint16_le(s,v) { v = *((s)->p++); v +=...
2
by: D. Shane Fowlkes | last post by:
Here's a good one. I've been using an Excel spreadsheet for the past couple of years to calculate a file's Estimated Download Time based off of a solid 50kbs connection (dial up). This is for a...
2
by: AxOn | last post by:
How can I save the text from a rich text box that is generated as a new rich text box in a tab control? I want to be able to have several rich text boxes open, and save the one that is under the...
0
by: Frustrated LDAP administrator | last post by:
I am trying this lesson involving DBs. "ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_vbcnexpress/html/caf3ecbd-87f5-4748-b990-7395409a19c7.htm" I can successfully create the DB,...
3
by: =?Utf-8?B?emlyb3M=?= | last post by:
Hello. I'll explain the needs first of all. We need to send a link by email (to an existing customer) so while he press the link his data will show on a form which he can update. we need to...
5
by: xZaft | last post by:
def save(): try: saves.append(str(level)) saves.append(str(stre)) saves.append(str(spd)) saves.append(str(hp)) saves.append(str(maxhp)) ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.