QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Consumer > General PC Forums > Everything Windows
The above video goes away if you are a member and logged in, so log in now!

Saving User data in Visual Basic

This is a discussion on Saving User data in Visual Basic within the Everything Windows forums, part of the General PC Forums category; Ok, So basically I want to save data that a user has entered into the program somehow, be that via ...

Reply
 
LinkBack Thread Tools
Old 10-11-2007, 04:16 PM   #1
 
FranzH's Avatar
 
Join Date: Dec 2006
Location: United Kingdom
Posts: 1,659
Trader Feedback: 0
Default Saving User data in Visual Basic

Ok,

So basically I want to save data that a user has entered into the program somehow, be that via textbox or inputbox and then save that data onto a file that will be located on the users PC somewhere. Or save the data from variables in the program.

Im not sure how easy or hard this is to do because I am quite new to VB [new as in 1 month into A level new].
I have tried Google and MSDN but I cant seem to find what i want.

Oh, and I am using VB 2003 (College uses that version so I have to use that version)

Any help apreciated
__________________
[CENTER][IMG]http://img232.imageshack.us/img232/7619/gggggggzq2.png[/IMG][/CENTER][CENTER][B]PSP[/B]: Black (JP) 1.50 + White (UK) 1.50 | [B]PSN[/B]: FranzH - Feel free to add [/CENTER]
[CENTER][SIZE=1]Currently Playing:[B] PC[/B]: WoW + GHIII | [B]PS3[250GB][/B]: TimeCrisis 4 + MGO Beta + COD4 [/SIZE][/CENTER]
FranzH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-11-2007, 04:19 PM   #2
 
Join Date: Sep 2005
Posts: 860
Trader Feedback: 0
Default

Quote:
Originally Posted by FranzH
Ok,

So basically I want to save data that a user has entered into the program somehow, be that via textbox or inputbox and then save that data onto a file that will be located on the users PC somewhere. Or save the data from variables in the program.

Im not sure how easy or hard this is to do because I am quite new to VB [new as in 1 month into A level new].
I have tried Google and MSDN but I cant seem to find what i want.

Oh, and I am using VB 2003 (College uses that version so I have to use that version)

Any help apreciated
Code:
Dim strTextBox As String

strTextBox = txtTextBox.Text
this will store whatever (be it numbers, letters, alphanumeric, or a combonation of all) to the variable "strTextBox".

if that is what you want
afiser is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-11-2007, 04:28 PM   #3
 
FranzH's Avatar
 
Join Date: Dec 2006
Location: United Kingdom
Posts: 1,659
Trader Feedback: 0
Default

Its not storing the data in a variable, I can do that.

What I am looking for is a way to store the data once the program is closed since the variable looses its data once program is closed. Thus the data saved outside of the program can be loaded back into the program. Sort of like a 'save game' so to speak just very very simple, like storing the data a variable holds.

Thanks for the help though, I should have made it clearer what I was looking for, sorry
__________________
[CENTER][IMG]http://img232.imageshack.us/img232/7619/gggggggzq2.png[/IMG][/CENTER][CENTER][B]PSP[/B]: Black (JP) 1.50 + White (UK) 1.50 | [B]PSN[/B]: FranzH - Feel free to add [/CENTER]
[CENTER][SIZE=1]Currently Playing:[B] PC[/B]: WoW + GHIII | [B]PS3[250GB][/B]: TimeCrisis 4 + MGO Beta + COD4 [/SIZE][/CENTER]
FranzH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-11-2007, 04:49 PM   #4
 
foXtrot's Avatar
 
Join Date: Jul 2005
Location: Electro World
Posts: 2,559
Trader Feedback: 0
Default

I used to do .NET 2003 in college but I forgot most of it. Anyway this should help http://www.freevbcode.com/ShowCode.Asp?ID=4492
__________________
I R homaki on [URL=http://forums.**********.net/]M4M[/URL] i.e. im not on QJ for anything anymore.
foXtrot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-12-2007, 11:37 AM   #5
 
FranzH's Avatar
 
Join Date: Dec 2006
Location: United Kingdom
Posts: 1,659
Trader Feedback: 0
Default

Thanks, ill give it a go later.
__________________
[CENTER][IMG]http://img232.imageshack.us/img232/7619/gggggggzq2.png[/IMG][/CENTER][CENTER][B]PSP[/B]: Black (JP) 1.50 + White (UK) 1.50 | [B]PSN[/B]: FranzH - Feel free to add [/CENTER]
[CENTER][SIZE=1]Currently Playing:[B] PC[/B]: WoW + GHIII | [B]PS3[250GB][/B]: TimeCrisis 4 + MGO Beta + COD4 [/SIZE][/CENTER]
FranzH is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
basic , data , saving , user , visual

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 10:43 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us