October 19, 2004, 07:46 PM
secretreturn code from vb script
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'); ?
October 22, 2004, 07:48 PM
jbmuir-- 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.