Using of procedures: how to stop and then continue?

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
kirillAsked:
Who is Participating?
 
MirkwoodConnect With a Mentor Commented:
Try
    formDialog.show vbModal
This will do the trick
0
 
MirkwoodCommented:
Exit sub will do the trick.
Btw: what you are describing is more like a subroutine
0
 
ajmendesCommented:
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
kirillAuthor Commented:
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
 
kirillAuthor Commented:
Could you please provide a little bit more details about vbModal. What is it?
0
 
MirkwoodCommented:
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
All Courses

From novice to tech pro — start learning today.