VBScript | Bug Reporting | Forums

Avatar
Please consider registering
guest
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_TopicIcon
VBScript
October 13, 2011
9:02 pm
Avatar
Member
Members
Forum Posts: 3
Member Since:
October 13, 2011
sp_UserOfflineSmall Offline

I just received an eXplorist Pro 10 and installed ArcPad. Right out of the box, I get a VBScript runtime error 800A0046 "permission denied: 'MsgBox'...

My scripts run just fine on my PC, my Trimble Nomad, and my Trimble Recons. When I run ArcPad studio, the scripts compile without errors. Finally, they conform exactly to the Microsoft knowledge base syntax.

Has anyone out there had this experience? If so, I would appreciate advice regarding a fix.

Here is some example code:

	'#### Confirm user wants to cancel form input
Sub Confirm_x
dim intResponse
intResponse = MsgBox("Are you sure you want to quite the form without saving?", 3, "CANCEL THIS OPERATION?")
If intResponse = 6 Then
ThisEvent.Result = True
Application.Quit
Else
ThisEvent.Result = False
End If
End Sub

This equally valid code also fails:

	'#### Confirm user wants to cancel form input
Sub Confirm_x
Dim intResponce
intResponse = MsgBox("Are you sure you want to quite the form without saving?", vbYesNo, "CANCEL THIS OPERATION?")
If intResponse = vbYes Then
ThisEvent.Result = True
Application.Quit
Else
ThisEvent.Result = False
End If
End Sub

This is also valid VBS code that spawns the same error:

Sub TD
If MsgBox("Did you save your last interval?", vbYesNo, "END OF HOLE, FINISHED LOGGING") = vbNo Then
Exit Sub
Else
Application.UserProperties("At_TD")= 1
call ValidateVis
call ValidateMW
call SetGPSDateTime
call UpdateLayer
call CopyDatabase
call ClearRecords
End If
End Sub
Forum Timezone: America/New_York
Most Users Ever Online: 99
Currently Online:
Guest(s) 4
Currently Browsing this Page:
1 Guest(s)
Top Posters:
phild31: 1479
David: 646
denisetdoris: 400
pprass: 264
S!G: 251
ShortcutHicksy: 250
jmebd: 184
Sockeye: 170
Caotix: 143
Paganel: 116
Member Stats:
Guest Posters: 5
Members: 805
Moderators: 0
Admins: 3
Forum Stats:
Groups: 14
Forums: 41
Topics: 921
Posts: 7328
Newest Members:
KHB3, ethanwetherspoon, EmilyAnges, cletachristie0, Robert Temple, OSS-SAS
Administrators: jg_the_Prophet: 27, mike_the_Enforcer: 0, OSS-SAS: 1

Leave a Reply