Solved

Using of procedures: how to stop and then continue?

Posted on 1998-11-16
6
138 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
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…
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…

815 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

11 Experts available now in Live!

Get 1:1 Help Now