473,466 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Halting one function after calling another

1 New Member
After I call a public function I want to halt or pause the first function, can this be done?
Mar 26 '10 #1
3 1562
Kinwang2009
22 New Member
Hi shuggie,
My answer is Yes as per your qoestion 'can this be done?'.
Thankx
Mar 27 '10 #2
vb5prgrmr
305 Recognized Expert Contributor
Expand|Select|Wrap|Line Numbers
  1. Private Sub MyFirstSub()
  2. If MyFirstFunction = True Then Exit Sub
  3. MsgBox "must have been false"
  4. End Sub
  5.  
  6. Private Function MyFirstFunction() As Boolean
  7. MyFirstFunction = True
  8. End Function
  9.  
or change MyFirstFunction = False...

So Is that what you mean?



Good Luck
Mar 27 '10 #3
Md Ashraful Isl
3 New Member
See My Code Example:
Public Paused As Boolean

Public Function YourF()
'Supposse you have wrote codes here
Paused = True
Do While Paused
DoEvents ' If paused = true funtion is paused
Loop
'Code after pause
End Function

Public Function BreakPause()
Paused = False()
End Sub

'Please answer my question if you found
Dec 4 '16 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

117
by: Peter Olcott | last post by:
www.halting-problem.com
31
by: Peter Olcott | last post by:
The Halting Problem can not be solved within the degree of expressability of a TM. My solution only worked because of its more limited degree of expressability. There is no such thing as a void...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.