VBS include or import
Posted on 2006-11-17
I'm writing some VBS for the SecureCRT tool and want to better organize my code.
I have a set of constants that I want to use in a series of vbs files, and rather than copy/paste them into each, I'd like to include the code through a single "include" statement.
What command or set of commands do I use to achieve this?
MsgBox "Here's a carriage return:" & ReturnKey & "!!!"
When I run this, I'l like it to show a messagebox.
ReturnKey would be a variable defined inside the KeyboardConstants.vbs file.
I may also have to procedures in that import file which would be available with a simple call such as this:
where RunExternalProcedure() is defined in KeyboardConstants.vbs