Solved

Using of procedures: how to stop and then continue?

Posted on 1998-11-16
6
136 Views
Last Modified: 2010-04-30
I believe this question will lokk stupid, but, in fact, I didn't find answer to it. How can I stop the completeting of a procedure and then (after some events) continue it from the same point. As you can see, I need something like BREAK - CONTINUE operators ikn Pascal

Thanks in advance
0
Comment
Question by:kirill
  • 3
  • 2
6 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1444999
Exit sub will do the trick.
Btw: what you are describing is more like a subroutine
0
 
LVL 1

Expert Comment

by:ajmendes
ID: 1445000
Hi,
what you can do also is to break in two routines what are you doing now in just one.
The first one you run it before the events you are talking about, and after thet you run the second block of code.
0
 

Author Comment

by:kirill
ID: 1445001
I'm sorry, but I probably didn't describe my question quite well. Here it is. From some point of my program I bring up dialog with the Show method for form. The problem is that code execution continues, when I need it to be stoped until I get some answer from user in tyhe dialog window.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1445002
Try
    formDialog.show vbModal
This will do the trick
0
 

Author Comment

by:kirill
ID: 1445003
Could you please provide a little bit more details about vbModal. What is it?
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1445004
a window can be displayed in two modes:
vbModal and vbModeless
Modal means that the parent form waits until the sub form is finished. The parent cannot be used. There can only be one modal form per application.
Modeless means that the parent and child form run in parallel.
A modeless form cannot have a modal form as child.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now