VBScript

Hi,

I'm trying to write a VBScript at the AfterAction section in the script editor. The script is:

Dim pos1
pos1 = InStr(0, ".", "1.2.3.4")

When running the action I recevie the following error message:


Error Executing script : AfterAction
Microsoft VBScript runtime error
Invalid procedure call or argument: 'InStr'
Line : 2
Char : 3
------------------------------------------------------
Error in AfterScript : VBScript
This Action did execute successfully however an error occurred in the AfterAction script.
------------------------------------------------------

What am I doing wrong?

Thanks,
Tomer
 

 

This works for me :

[code]dim xx = InStr(1,"1.2.3.4",".")msgbox CStr(x)[/code]