/ Forums / Advansys Formativ / Creating Solutions with Formativ / NewFilePickerDialog Error

  • Creator
    Topic
  • #4423
    ctaleck
    Participant

    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
  • Author
    Replies
  • #8139
    Support 3
    Participant

    Thanks for your post.

    We can reproduce this behaviour and added to our database. Our engineers will review this issue in next Formativ update.

    NewFilePickerDialog was introduced in Formativ 1.5, most of our customer and commercial products now use Formativ 2.0 visual forms controls. We suggest you to use Formativ 2.0 controls, our engineers have written a sample applet which list available files in a TRzCheckList control. You can download the sample applet from here: http://beta.advansyscorp.com/sample-applet-list-available-files-checklist.zip

    Hope this helps. If you have any further questions, please do not hesitate to contact us.

    Regards,
    Advansys Support

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.