User Tag List

Results 1 to 10 of 10

Thread: Question regarding the File object...

  1. #1
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question regarding the File object...

    Hey, folks!

    I have a question regarding the File object. What is the condition to specify when the OK button of a Load or Save dialog box is used? In other words, what is the equivalent condition to the Common Dialog Box object's "OK button is clicked" or "Cancel button is clicked"?

    I would use the Common Dialog Box, but I want the ability to select multiple files (which the Common Dialog Box object doesn't support).

    Thank you very much in advance!



    Most appreciatively...

    RGBreality

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)

    Re: Question regarding the File object...

    Both Ok and Cancel button generate "last action OK", but if you check the FileSelReturn$ expression you will be getting empty if cancel button pressed or a valid filename string if ok pressed,

    check if you press ok but the file name is empty it will not close the dialog, if you fill with a name of a file that does not correspond to an existing file you will get that the file does not exist

    to be sure you may use

    last action ok
    + Len(FileSelReturn$( "File" )) <> 0

    so the event will be trigger when you have some file and action was ok

    Hope its help
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding the File object...

    Hey, Fvivolo! Thank you for your quick reply!

    Actually, I find that using the "Last Action OK" with any other sub-conditions doesn't work. I have tried specifying the length of the string for the return file; I have tried specifying how many files were selected; and I have tried selecting only the first file path (as if multiple files were selected). None of them work properly.

    Are there any other objects which allow multiple selections, but which I can differentiate "OK" and "Cancel" conditions?

    Thank you again!



    Most appreciatively...

    RGBreality

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding the File object...

    Powerful Dialogs Object.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding the File object...

    Hey, StephenL! How ya doin'?

    Actually, I don't think the Powerful Dialogs object will help me either. When I tried it out, it doesn't offer any expressions to specify the file path for multiple file selections (as the File object or File Browser objects do). So, for example, the File object offers expressions to "Get file path for selection X," which the Powerful Dialogs object doesn't.

    Any other ideas? Or any other suggestions in how I should be using the File object to acknowledge file selection(s)?

    Thank you again!



    Most appreciatively...

    RGBreality

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding the File object...

    Hmm, maybe I'll make and release a new version of the Powerful Dialogs Object. I seem to have an included an option to select multiple files, but not an expression to retrieve which ones were selected. :crazy: I did add a few features to the object awhile back anyway, but for some reason I never released it.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding the File object...

    Hey, Jaffob!

    Actually, that would be great! I love your Powerful Dialogs object! I use it all the time. Just in this one instance it doesn't offer the functionality that I need.


    RGBreality

  8. #8
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding the File object...

    Is this what you are after?
    File Object Example
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  9. #9
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)

    Re: Question regarding the File object...

    Hi StephenL,

    Excellent example!!!


    Regards,


    Fernando Vivolo

    ... new things are coming ...

  10. #10
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question regarding the File object...

    Hey, StephenL! You kick ass!

    That is very similar to what I need. I was able to adjust the conditions based on how many file selections were made.

    Thank you for putting your effort into creating this example for me. Like I said, you kick ass!



    Most appreciatively...

    RGBreality

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. Tree Control Object + File Question
    By Eliyahu in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th July 2009, 11:35 AM
  3. File object question
    By Farflame in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th June 2009, 06:15 AM
  4. Quick question.... file object!
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 29th January 2007, 07:03 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
  •