Alpha Video Training
Results 1 to 6 of 6

Thread: XDialog Script Error message - error 8011

  1. #1
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default XDialog Script Error message - error 8011

    I get an obscure error message when I run a really simple XDialog script. The error message says "Error 8011" - see the attched JPEG.

    It occurs like this. I have a "browse" button on a form to browse my disk for a folder name. Behind the button is an "on click" event tied to two XDialog actions:

    1. a "Prompt for folder name" XDialog action
    with a variable name of FBkup for the folder selected; and

    2. a "Set field value" XDialog action
    to place FBkup value into a field on my form.

    When I click the browse button my script works just fine when I select a new folder in the "Prompt for folder name" dialog box. The selected folder appears in my form just as I want. However, if I instead select the Cancel button on the "Prompt for Folder Name" dialog box I get the 8011 error - see attached.

    Does anyone know how I can fix this problem?

  2. #2
    "Certified" Alphaholic
    Real Name
    Finian Lennon
    Join Date
    Apr 2000
    Location
    Atlanta, GA
    Posts
    1,805

    Default RE: XDialog Script Error message - error 8011

    The line
    topparent:fba ... etc
    has no meaning in the context of an xdialog which exists independently of the form.

    Get a pointer to the form
    f=Obj("formname")
    and assign the value by
    f:fieldname.value =

    Finian

  3. #3
    Former Alpha Employee Edward Larrabee's Avatar
    Real Name
    Edward Larrabee
    Join Date
    Nov 2002
    Location
    New Hampshire
    Posts
    1,385

    Default RE: XDialog Script Error message - error 8011

    Would you send me a copy of the script, so I can test it here?

  4. #4
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default RE: XDialog Script Error message - error 8011

    Hi Ed. Thanks for the offer. I have attached a copy of my application that produces error 8011. It's only small application with a single form. On this form there are two browse buttons. Click on either one and then click on the cancel botton after the "browse for folder" dialog box appears and the error occurs. I would be interested to find out how I can solve this problem. Thanks.

    PS: My email address for the Forum is no longer current, but I cannot change it. The email address "a5user@cosmos99.fastmail.fm" will reach me.

  5. #5
    Former Alpha Employee JerryBrightbill's Avatar
    Real Name
    Jerry Brightbill
    Join Date
    Apr 2000
    Posts
    5,172

    Default RE: XDialog Script Error message - error 8011

    Brett

    If you cancel the lookup, there is no value to save in the field, which gives the error. You can change the "Set Field values" Action script to test the value of FBkFN and either use the current value in the field or the value in the variable. Edit the Action Script and set the field value by an expression. For the expression, this will work

    if(Var-"FBkFN="",F_Bkupdir,Var-"FBkFN)

    If cancel is pressed and FbkFN is blank, the existing value in the field is used. If a value is selected, the new value in FbkFN is used.

    Jerry

  6. #6
    Member
    Real Name
    brett sinclair
    Join Date
    Aug 2002
    Location
    Wellington, New Zealand
    Posts
    858

    Default RE: XDialog Script Error message - error 8011

    Hi Jerry. That has worked to perfection! Many thanks for your excellent and timely response. Much appreciated.

Similar Threads

  1. Wierd Script Error Message
    By djlandreneau in forum Alpha Five Version 6
    Replies: 1
    Last Post: 10-13-2005, 07:47 PM
  2. Script Error Message
    By George Smyth in forum Alpha Five Version 6
    Replies: 2
    Last Post: 01-18-2005, 11:47 AM
  3. Script Error Message
    By George Smyth in forum Alpha Five Version 6
    Replies: 0
    Last Post: 01-14-2005, 04:30 AM
  4. Error 8011
    By Chris Zito in forum Alpha Five Version 5
    Replies: 6
    Last Post: 01-17-2004, 02:19 PM
  5. ERROR 8011
    By Scott Emerick in forum Alpha Five Version 5
    Replies: 10
    Last Post: 09-10-2003, 03:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •