473,387 Members | 1,481 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,387 software developers and data experts.

Saving items from an array

18
I have a program that allow the user to populate an array from a listbox. I want to save the material. I have transferred the items to an Excel worksheet where they can be saved, but my goal is to have the program run independently from any other programs. Should I save the different rows from the array to a .dat file?

What is the best way to save the information? I want to give the user an opportunity to save in the middle of the process and at the very end, so I was thinking of a simple get put statement.

Example:

lstClass(1 To 25, 1 To 25)

1. Save each class in as 1 file.
2. Have it easily exported (in a clean format to an Excel document or other spreadsheet)
3. Print out an overview of each class with their students.
Sep 27 '07 #1
2 1053
Killer42
8,435 Expert 8TB
It's quite simple to write your data out to a file. The extension you use is really up to you - DAT is certainly one possibility. Probably the simplest thing is just to dump everything in one go, each time the user says to save. In other words, overwrite your file each time, with the complete set of information.

By the way, what version of VB are you using?
Sep 28 '07 #2
jesse07
18
It's quite simple to write your data out to a file. The extension you use is really up to you - DAT is certainly one possibility. Probably the simplest thing is just to dump everything in one go, each time the user says to save. In other words, overwrite your file each time, with the complete set of information.

By the way, what version of VB are you using?
Im using 6.0. Is .dat the file extention that most people prefer to work with. I am trying to put the finishing touches on my program and have a long term goal of putting it in a hand held device to run independtly, so any suggestion you have on saving or how I start my next process. I would appreciate it. I have it working through a tranfer data to excel, but again- Independent is the goal.
Sep 28 '07 #3

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

Similar topics

8
by: Matt Fletcher | last post by:
Hi guys, I am trying to allow the models in a mysql database to be ordered by the site owner. I was thinking along the lines of a <SELECT> list containing the model names and Up and Down...
2
by: eth0 | last post by:
I hate to ask like this as I normally like to work things out for myself, but I am running out of ideas....and hair !!! I am writing a stock inventory program using structures. The program data...
1
by: Bill Maher | last post by:
I have an array that I use to write to the file on the C:\ drive. I want to print the file. How can I do it. Here is my code for the write to the file: I'm using "writeline". To allow for...
21
by: StriderBob | last post by:
Situation : FormX is mdi child form containing 2 ListViews ListView1 contains a list of table names and 4 sub items with data about each table. ListView2 contains a list of the columns on each...
1
by: pmclinn | last post by:
I have a formated a structure as follows: <Serializable()>public structure stcOutPut private data as string private visi as string end structure Instances of this strucuture are stored in an...
3
by: deanfamily | last post by:
I have an array of items that I need to save to a file. How do you do this?
7
by: Gav | last post by:
If you had a class user with variables id, name, password. How would you save this object or its variable date to a MySQL database? And then if you had a dbase populated with id, name, password and...
11
by: ctman770 | last post by:
Hi Everyone, Is it faster to save the precise location of an html dom node into a variable in js, or to use getElementById everytime you need to access the node? I want to make my application...
10
by: =?Utf-8?B?VGhyb3dtZSBBIEZyaWdnaW5ib25l?= | last post by:
I apologize if this is in the wrong discussion group. I have a C++ form (VS2003) that includes a couple text boxes and a slider bar. Moving the slider bar changes a picture that is displayed and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.