× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Vern, thanks for the reply.

I have tried the "Exit Sub" statement but I wanted to 
avoid having to set a global variable to monitor for
termination in each nested subroutine :(  

I suppose I'll have to re-think the design of the script 
since it was written by a "top down" programmer ;-)

Terry

> -----Original Message-----
> From: pctech-bounces@xxxxxxxxxxxx 
> [mailto:pctech-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
> Sent: Wednesday, November 16, 2005 7:45 AM
> To: PC Technical Discussion for iSeries Users
> Subject: Re: [PCTECH] Ending a VB Script Macro
> 
> 
> Try Exit Sub - Exit works but you need to say what is being exited.
> 
> Documentation is at 
> http://msdn.microsoft.com/library/en-us/script56/html/vtorivbs
> cript.asp
> 
> HTH
> 
> At 06:14 AM 11/16/2005, you wrote:
> 
> >First, I would like to state that I am *not* a Visual Basic
> >script programmer by any stretch of the imagination :)
> >
> >With that said, I currently have a VB script written that
> >is being used as a Client Access macro to process keystroke
> >entries for automating a couple of user tasks.
> >
> >In certain instances, I would like to terminate the VB macro
> >immediately but have not found a key word or statment in the
> >VB script documentation to do this. I've looked at the EXIT
> >and TERMINATE keywords but it seems they only end processing
> >of a subroutine or an event.
> >
> >Basically, I'm looking for an RPG style *INLR or Cobol type
> >of END PROGRAM statement.
> >
> >Any help would be appreciated!
> >
> >Thanks,
> >Terry


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.