Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     return code from vb script

Read-Only Read-Only Topic
Go
Search
Notify
Tools
return code from vb script
 Login/Join
 
Platinum Member
posted
Does anyone know how to get a returncode from vb script returned to the dialoge manager &retcode?

my vb works from dialog manager:

-WINNT E:\SRTWRK\test.vbs
-TYPE RETCODE= &IORETURN

But I can't get the return code.

I quit the vb as follows.:

WScript.Quit (3)


Is there a way to run it as a function?

like
-set &retcode = (E:\SRTWRK\test.vbs,'i4'); ?
 
Posts: 103 | Location: ricmmond va | Registered: September 30, 2004Report This Post
Gold member
posted Hide Post
-- You wrote:
my vb works from dialog manager:

-WINNT E:\SRTWRK\test.vbs
-TYPE RETCODE= &IORETURN

-- My turn:

I don't use WebFocus on Windows, buuuuuut:

-WINNT E:\SRTWRK\test.vbs
-TYPE RETCODE=&RETCODE

might work better. On unix, &RETCODE does not work and instead you have to use &EXITRC. So maybe in windows the proper code would be:

-WINNT E:\SRTWRK\test.vbs
-TYPE EXITRC=&EXITRC

Also, you may want to know that on unix the darned &EXITRC doesn't work for WebFocus releases 5.2.x. Supposedly it is fixed for the 5.3.x series of releases.

Hope this helps rather than confuses.
 
Posts: 83 | Location: Dartmouth Hitchcock Medical Center | Registered: April 17, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     return code from vb script

Copyright © 1996-2020 Information Builders