Solved

Parking and Unparking Transactions Help

Posted on 2006-07-07
2
745 Views
Last Modified: 2010-04-30
Hi Experts

I am making POS software for a company.

My software is uses SDI.

My software can handle multiple transactions but my client wants to be able to park/unpark transactions and I don’t know how to do it.

When you start a new transaction each form has a Transition ID and that is carried through all the form menus for that transaction.

I was thinking about getting my program to loop through all the forms and hide all the forms that have the Transaction ID the user wants to park but I don’t know how to do that or how i would get the forms back after they are hidden

I would be very grateful for any advice/assistance

Thanks

Nothern_Lights
0
Comment
Question by:Nothern_Lights
2 Comments
 
LVL 20

Expert Comment

by:hes
ID: 17061464
If you mean by park/unpark suspend resume then you write all the data you have captured up to that point to the data base. Then when you resume the transaction you retrieve the transaction data and continue at the point it was suspended.
0
 
LVL 6

Accepted Solution

by:
junglerover77 earned 500 total points
ID: 17067680
To access all forms of your VB6 application, you can just use the Forms collection.

Add 3 forms in an project, put 2 command buttons in form1, then paste the following code in form1:

Private Sub Command1_Click()
    Dim oForm As Form
    For Each oForm In Forms
        If oForm.Name <> "Form1" Then oForm.Hide
    Next
End Sub

Private Sub Command2_Click()
    Dim oForm As Form
    For Each oForm In Forms
        If oForm.Name <> "Form1" Then oForm.Show
    Next
End Sub

Private Sub Form_Load()
    Form2.Show
    Form3.Show
End Sub
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Input past end of file vbs script 9 92
Vb.net 2008 2 59
Using "ScreenUpdating" 6 63
Windows Script Host failed (Access is denied.) error 6 145
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question