473,322 Members | 1,523 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.

Keeping data in VB

First, I am new to VB. In my recent project I want to keep large amount data ( like 1 & 0s ) & I want to acess time to time. Normally what are the methods of keeping this kind of datas
Jul 1 '07 #1
3 1004
Killer42
8,435 Expert 8TB
Some possibilities...
  • Save it to a database (MS Access is probably the most common).
  • Write it out to a file (I recommend writing to the file as plain text, with comments or headers or something so that when you find the file sitting around in a couple of years, you can tell what it's for).
  • Write it to an INI file. Probably considered obsolete now that we have the Windows registry, but still possible.
  • Save it in the Windows registry.
Jul 1 '07 #2
Thanks for fast reply,
But my problem was not solved. I'll discribe you what I'm trying to do & what I have done.
I am trying to run Nokia 3310 disply through pc parall port.
for one single letter I want to access 42 numbers of 1 & 0
so I kept these datas in XL sheet, It worked but the problem is speed.
Now I am trying to keep this data in simple text file.
I want to access specific location of that text file.

Pls help
Jul 1 '07 #3
danp129
323 Expert 256MB
Thanks for fast reply,
But my problem was not solved. I'll discribe you what I'm trying to do & what I have done.
I am trying to run Nokia 3310 disply through pc parall port.
for one single letter I want to access 42 numbers of 1 & 0
so I kept these datas in XL sheet, It worked but the problem is speed.
Now I am trying to keep this data in simple text file.
I want to access specific location of that text file.

Pls help
Use one of Killer's methods for storing the info. Then when your application starts have it load the info into memory. I think the easiest thing to do would be to utilize the scripting.dictionary object.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.     Dim objDict 'As Scripting.Dictionary
  3.     Set objDict = CreateObject("scripting.dictionary") 'New Scripting.Dictionary
  4.  
  5.     'instead of manually assigning these pairs you would loop through your stored data and add them
  6.  
  7.     objDict.Add "a", "1010"
  8.     objDict.Add "b", "1011"
  9.     objDict.Add "c", "1100"
  10.     objDict.Add "d", "1101"
  11.     objDict.Add "e", "1110"
  12.     objDict.Add "f", "1111"
  13.  
  14.     MsgBox objDict("f") & " " & objDict("a") & " " & objDict("c") & " " & objDict("e")
  15. End Sub
  16.  
Jul 1 '07 #4

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

Similar topics

6
by: Astra | last post by:
Hi All I've noticed on quite a few ASP sites that when they have a 'MyAccount' section they transfer the site to https and then when you have logged into your account successfully and gone back...
2
by: Raja Kannan | last post by:
Is there a way to remove text portion from the HTML keeping the HTML Tags using the browser, say javascript RegEx or something ? I have seen lot of examples removing HTML tags to get the text...
6
by: Michael Bulatovich | last post by:
I have a very simple db I use for keeping track of hours, tasks, projects, clients etc. It has a form that I use to enter data. Currently the form has a textbox for a field called "start time",...
5
by: Alan Webb | last post by:
Guys, I get this: Regular Hours are any hours less than the number of hours that can be worked before the hours begin to be counted as overtime in the period. Overtime Hours are any hours...
7
by: David Lozzi | last post by:
Howdy, I have a usercontrol in my aspx page and when the page loads, I send it some property values based on the data displayed. I am sending it to a public property like below. However the...
1
by: t.mitchell | last post by:
Hi, I have a python gtk app that allows users to have one project open at a time. I have recently discovered that projects are not being freed when they are closed - the refcount is not hitting...
0
by: NSD | last post by:
Which Oracle program to use for adminitration and book-keeping Hello there, I am new to Oracle and I need to know how I can insert my company's data (administration and book - keeping) into an...
0
by: Rune Jacobsen | last post by:
Hi all, In my project I have a control (described in an earlier post) which basically consists of three "subcontrols": One big area where the vital data is displayed (scrollable, since it will...
0
by: jehugaleahsa | last post by:
On Jun 13, 3:09 pm, "Bob Powell " <b...@spamkillerbobpowell.net> wrote: I apologize for the size. I should have probably put this on a blog or something. I'm not interested in tools. I...
0
by: bruce | last post by:
hi jackie, if you don't mind... can i ask what you're looking to accomplish? are you looking to simply get the text/string data, or something else??? -----Original Message----- From:...
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...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.