-
Topic
-
I have an encountered an odd error with the NewFilePickerDialog.
Anytime I use the command, when the applet finishes, I get a dialog titled “Sorry, the Applet could not be executed.” Inside the dialog I get various messages such as:
quote:
Access violation at address 03215BD2 in module ‘formativ.dll’. Read of address 00000274
(The number differ each time I test.)
When I don’t select a file, it reads:
quote:
Privleged instruction
Any ideas on why this occurs?
Here is the code I am running to test:
'
' Test the NewFilePickerDialog
'
Sub Main(Client, GWEvent)
Dim File
File = GetFile()
MsgBox "The first file you selected was " & File
End Sub
Function GetFile()
Dim FP
Set FP = Utilities.NewFilePickerDialog
With FP
.StartingFolder = Utilities.UserDataDirectory
End With
If FP.Execute = Btn1 Then
If FP.SelectedFiles.Count > 1 Then
GetFile = FP.SelectedFiles.Item(0).Name
End If
End If
Set FP = Nothing
End Function
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.