Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-06-2018, 12:27 AM
bighalo bighalo is offline
Registered User
 
Join Date: Mar 2018
Posts: 4
Post how to end or exit the running script

I wrote a vbs:

Code:
sub main()
...

do
  nIndex = objTab.Screen.WaitForStrings(g_vWaitFors)
  if nIndex = 1 then
    ...
    <do something>
    exit sub
  end if
loop

end sub

I waitforString and do something only once.
I use "exit sub". But the script still running in loop.
How to end or stop the running script?
Is there any code available? Not Script/Cancel menu.

Last edited by jdev; 03-06-2018 at 09:15 AM. Reason: wrap code in [code] blocks to preserve indentation
Reply With Quote
 

Tags
vbs

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:43 AM.