Hi all
I've got some script fragments in VB script that I want to reuse in several larger scripts.
I've looked at how the included scripts do it and they seem to use the INC statement.
So, I have created two script files.
File #1
=====
This includes a main sub plus:
In the header
---------------
!INC Jayson.TestScript
Plus in the main sub
----------------------
TestScript.SayHello
File #2 is called TestScript and is in the Jayson folder.
==================================
It has a simple sub as follows:
sub SayHello
MsgBox("Say Hello")
end sub
What I expect to happen is execute file #1 and have a message box saying "Say Hello" appear.
What I DO get is an error message in the second file stating:
Jayson.TestScript error: Expected statement, Line 1
So, it would appear that the script engine is trying to execute the SayHello subroutine, but is failing.
Any ideas as to what I am doing wrong?
Cheers
Jays
