Morgan
9 years agoFrequent Contributor
Type Mismatch Error
I'll preface this with "I'm sure I'm doing something dumb".... ;)
I am just trying to feed in multiple variables from one script to another and am receiving a "Type Mismatch" error when I run RunMod below... They are in two different scripts but I have 'Useunit set up on both.
Sub RunMod
Join("EPA, EPB") <----- I'm not sure the quotes are correct but TC will only compile if in this format...
End Sub
Sub Join(xMeth,yMeth)
Sys.Keys(xMeth)
Sys.Keys("[Enter]")
Sys.Keys(yMeth)
Thank you...
In VBScript, to call procedures with multiple parameters, you need to use the Call keyword OR omit the parentheses around the parameter list:
Call Join("a", "b")
Join "a", "b"