Select to view content in your preferred language

VBScript runtime error

2840
2
05-30-2012 10:32 AM
AndrewSullivan
New Contributor
I am creating an Applet that will allow configuration of our GNSS receiver.  I am having issues with 'runtime errors' and also what the VBScript syntax should look like in ArcStudio.  The attached file shows both the compiling and runtime errors.  Can anyone tell me how to correct these errors?  [ATTACH=CONFIG]14761[/ATTACH]
Tags (3)
0 Kudos
2 Replies
IvanKautter
Regular Contributor
Pretty sure you don't use script tags in your vbscript (.vbs) file.  Remove them and everything should be fine.
0 Kudos
GarethWalters
Deactivated User
Hi Andrew,

Ivan is correct. Remove the script tag and replace with:

Sub MyTest
.
.Your code here
.
End Sub

Also the onclick event should read Call MyTest rather than Call "Vbtest.vbs". The entire vbs file can contain lots of routines and you only want to call one at the onclick event.

Good luck.

Gareth
0 Kudos