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
3 1179
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.
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?
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. - dim myArr(4) as string
-
dim i as integer
-
for i = 0 to 4
-
myarr(i) = "this is the " & i & "th element"
-
next
-
msgbox myArr(2)
HTH
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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: 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...
|
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,...
|
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...
|
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...
| |