Solved

Using of procedures: how to stop and then continue?

Posted on 1998-11-16
6
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

690 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