User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: [Bug] File object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Bug] File object

    Thought this bug was reported some days ago, but I don't found the Thread yet. Maybe I'm wrong...

    If you're deleteing a file that is no existing, after that this one File object isn't able to delete other existing files.

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: [Bug] File object

    It's the way the object works, although I don't remember why it was done like this : when an error occurs, the other actions don't work until the error is cleared. Just clear the error code (there is an action for that) before doing anything, that will solve the problem.

    In a future version of this object we'll add an option to ignore the last error code.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Bug] File object

    Thanks, that's okay.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Bug] File object

    You can use too, the "File-Folder object" which is able to delete files in a fastloop and browse a folder and sub-folder in a File-Folder loop.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Bug] File object

    I'm using it in the same application and don't know that. :crazy:

  6. #6
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Bug] File object

    If you ask your question about the file object because you want to empty a folder, you can also do that through one action with File-Folder object.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Bug] File object - overwrite prompt

    I found an issue in the save selector.

    If a file "File.txt" exists and I want to save with "File.txt" the selector ask me for confirmation. But when I want to save with "File" it don't ask me although the TXT-filter is selectet!? :confused: So this file would be overwritten! No other Windows selectors do so. Please fix it.

  8. #8
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: [Bug] File object - overwrite prompt

    You probably forgot to set the default extension to ".txt" (action "File Selector / Set default extension"). I've just tested, it works fine, the message box is displayed even if you don't specify the extension.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Bug] File object - overwrite prompt

    Oh my god ... You are right. -.-

    I got paranoid by this object but this was my mistake. Thank you!


    Edit

    But it's odd... If I set the default extension to "X" it adds the selected extension in the selector.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Bug] File object - overwrite prompt

    Okay, some cases:

    settings
    selector filters: "txt|*.txt|rtf|*.rtf"
    [color:#660000]default extension: "" (nothing)[/color]
    files x.txt and x.rtf exists

    testing
    selected [color:#000099]txt[/color] or [color:#000099]rtf[/color] filter + fileanme input [color:#000099]x[/color] = [color:#990000]no prompt[/color]
    Get result pathname = [color:#000099]path\x[/color]
    selected [color:#000099]txt[/color] or [color:#000099]rtf[/color] filter + fileanme input [color:#000099]x.txt[/color] or [color:#000099]x.rtf[/color] = [color:#990000]prompt[/color]
    Get result pathname = [color:#000099]path\x.txt[/color] or [color:#000099]path\x.rtf[/color]

    settings
    selector filters: "txt|*.txt|rtf|*.rtf"
    [color:#660000]default extension: "X"[/color]
    files x.txt and x.rtf exists

    testing
    selected [color:#000099]txt[/color] or [color:#000099]rtf[/color] filter + fileanme input [color:#000099]x[/color] = [color:#990000]prompt[/color]
    Get result pathname = [color:#000099]path\x.txt[/color] or [color:#000099]path\x.rtf[/color]
    selected [color:#000099]txt[/color] or [color:#000099]rtf[/color] filter + fileanme input [color:#000099]x.txt[/color] or [color:#000099]x.rtf[/color] = [color:#990000]prompt[/color]
    Get result pathname = [color:#000099]path\x.txt[/color] or [color:#000099]path\x.rtf[/color]


    [color:#009900]-->[/color] What is the sense of the default extension?

    [color:#009900]-->[/color] Regardless of that wouldn't it be better the file selector always tests for existing files with the actually selected filter if no extension were inputed after the filename?

    Edit

    (Or add a type variable "Always overwrite prompt" or something?)

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Create folder with File object on Program File
    By Vantales in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th April 2013, 11:13 AM
  2. File Object - Mass/Mulitple File Rename
    By Yelnek in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th January 2013, 09:44 PM
  3. Issue with loading file from File Object.
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st April 2012, 11:34 AM
  4. File size problem with regular file object??
    By TrojanWolf in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th April 2010, 10:39 PM
  5. File object - file selector saving issues
    By Gary_Molton in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2006, 08:25 PM

Posting Permissions

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