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

multiple orders without using any databases

hi, experts
i just started learning Visual Basic, and i have a question, may be it sounds stupid, but i'm confused. Can i place multiple orders using just one form and without any databases. What i mean i need to be able to count the total of all the order place one b one, and displa everythin than in receipt, what in my case is just simple label. I tried, and the result is i can place just one order at a time, and display too. When i start placing another order it substitute all the previous data, so i'm havin just the results of the last order, and loosing the all previous orders. If it is possible can anyboddy give a hint where to look or what method to use.
Thank you all
Sep 10 '08 #1
3 1179
kadghar
1,295 Expert 1GB
what kind of orders??

yes, you can store them in a txt file, excel file, any kind of file... otherwise, if stored in a variable (or an array), you'll lose your information each time the program is closed (anyway, an array will solve your problem if you dont mind losing your information each time you restart your application).

Of course, the recomended 'kind of file' to store information is a DataBase.
Sep 10 '08 #2
thank you, the only way the teacher accept is store in variable, but i don't know how to introduce this variable and where (incide procudere, class, global). Should i use some kind of counter?
Sep 10 '08 #3
kadghar
1,295 Expert 1GB
Well, first of all, i'll recomend you to read the Posting Guidelines, about homeworks.

Remember, you can use DIM to define a variable or an array. When using an array, yes, it's also recomended to define an integer or a long to use them as counters.
e.g.

Expand|Select|Wrap|Line Numbers
  1. dim myArr(4) as string
  2. dim i as integer
  3. for i = 0 to 4
  4.     myarr(i) = "this is the " & i & "th element"
  5. next
  6. msgbox myArr(2)
HTH
Sep 10 '08 #4

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

Similar topics

10
by: Eric S. Johansson | last post by:
I have an application where I need a very simple database, effectively a very large dictionary. The very large dictionary must be accessed from multiple processes simultaneously. I need to be...
3
by: JB | last post by:
To anyone that is able to help.... What I am trying to do is this. I have two tables (Orders, and OrderDetails), and my question is on the order details. I would like to set up a stored...
3
by: Fred | last post by:
I have a query that returns multiple identical records, however it should only return one. Indeed there is only one record for the OrderActionTypecode of 'P' yet there are two orderactions so it...
11
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
7
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
3
by: rallykarro | last post by:
Hi, How do I at the best way perform select statements over multiple databases? I have a couple of databases containing the same table definitions with diffrent data. Now I want them to act...
9
by: TC | last post by:
I need to design a system which represents multiple "projects" in SQL Server. Each project has the same data model, but is independent of all others. My inclination is to use one database to store...
6
by: cj2 | last post by:
If from withing one program I want to access multiple databases on a sql server do I need to make multiple connections? The connection string says initial catalog. I'd assume I could denote the...
4
by: snfctech | last post by:
I have a project to create a dashboard that will connect to existing systems as well as create new features based on combining data from the existing systems. For example, the dashboard will be able...
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...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.