Viewing 1 post (of 1 total)
  • Author
    Posts
  • #30437
    Patrick C
    Participant

    The following is “unexpected behaviour” rather than a “bug”.
    Example:

    #language = "V8"
    #async = "off"
    
    // let nFlags = eeFileDialogNoReadOnlyReturn;
    let nFlags = 0;
    let sFileFullPath = editor.FileDialog(
      eeFileDialogSaveAs,    // nType
      nFlags,                // nFlags
      "ReadOnlyExample",     // strTitle
      "Text (*.txt)|*.txt",  // strFilter
      1,                     // nDefFilterIndex (base 1)
      "myReadOnlyFile.txt",  // strDefPath
      "d:\\example\\",       // strDefFolder
      "txt"                  // strDefExt
    );

    No matter how I set nFlags, I always end up with “try again …”:
    Try again with a different filename.

    My code can handle read only files, but I have no way to select the read only file for save.

    Am I missing a flag?

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