Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

VBScript Return Code


4 replies to this topic

elucic

elucic
  • Members
  • 6 posts

Posted 20 June 2002 - 19:51

Does anyone know if it is possible to specify a return value from within a VBScript?

In a DLL I know that you can use "return ERROR_BLABA", but is that possible in VBScript and if yes could you give a sample?

Thanks,
Eddie

PhilWilson

PhilWilson
  • Members
  • 10 posts

Posted 20 June 2002 - 21:56

A VBScript CA can name a function in the VBScript. You can have the function return a value. The Target of the CA is the function name.

elucic

elucic
  • Members
  • 6 posts

Posted 20 June 2002 - 23:53

Oh really?  Could you give me an example please?

Thanks

hteichert

hteichert
  • Members
  • 158 posts

Posted 21 June 2002 - 08:10

function AReturnValue (ReturnThisMinusOne)
 AReturnValue = ReturnThisMinusOne - 1
end function
h.teichert-ott

elucic

elucic
  • Members
  • 6 posts

Posted 25 June 2002 - 13:52

Thanks alot for your help!  It works  :)