Storing and retrieving data
-
I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff
-
I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff
Consider using database.
-
I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff
I'd suggest to start with [XmlSerialization](https://docs.microsoft.com/en-us/dotnet/standard/serialization/introducing-xml-serialization). All you need to do is to create [custom class](https://msdn.microsoft.com/en-us/library/ms973814.aspx), which will holds all your data. It might be a
Person
class:Public Class Person
Private personName As String = String.EmptyPublic Property Name As String Get() As String Return personName Edn Get Set (value As String) personName = value End Set End Property 'your code here...
End Class
For further details, please see: [XML Serialization and Deserialization Part 1](https://www.codeproject.com/Articles/483055/XML-Serialization-and-Deserialization-Part) [XML Serialization and Deserialization Part 2](https://www.codeproject.com/Articles/487571/XML-Serialization-and-Deserialization-Part-2) [XML Serialization – Tips & Tricks](https://www.codeproject.com/Articles/58287/XML-Serialization-Tips-Tricks) [A Complete Sample of Custom Class Collection Serialization and Deserialization](https://www.codeproject.com/Tips/787867/A-complete-sample-of-custom-class-collection-seria) - VB.NET example!!!
-
I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff
-
I'm frustrated. I want to learn how to create a file to store information like name, age, phone number, email, etc... in VB.Net I have tried google, youtube, books but cant find what I need. I want to be able to write code that would save my data and so I can retrieve it later in the program. I'm willing to pay someone if they can tell me how to do it. Thanks. Jeff
Hi Jeff, I am in agreement with Victor Using a database like(MySQL or SQL Server) is the best way to go. MySQL sets up faster and is lighter. Steps you would take will be: -install the Database server -create the table with the fields you want to store (name, age, etc.) -Save(Name) the table how you want (example: give the table the name "PersonInfo") -create a new Asp.Net Web Application Project in Visual Studio -use a web form in your project -From the Toolbox Menu search for "GridView"(it's easier to use as a beginner with data) then drag onto your web form. -you will have to click the right arrow and set up your datasource (which includes the connection credentials-user name-password you already set in MySQL or whichever database you use). Once that is set up you should be able to run the application and edit/Add new data to your database table. I would however highly recommend you navigate to some place like this: Microsoft Virtual Academy – Free Online Training for Developers, IT Professionals and Data Scientists[^] and view some Beginner tutorials on Visual Studio to become more familiar with the interface and check out this to get familiar with MySQL(if you choose to use it): Create Schema and table - MYSQL workbench - YouTube[^] In short to store and retrieve data via application you need -Database(and tables) -Application to read/write the information to the DB Happy hunting Regards, Patrick *Note why pay when info is free :)