?
Solved

Using of procedures: how to stop and then continue?

Posted on 1998-11-16
6
Medium Priority
?
142 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 13

Accepted Solution

by:
Mirkwood earned 200 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 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