User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 32

Thread: How Do I Write This Expression Please?

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Canberra, Australia
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How Do I Write This Expression Please?

    Hi guys. I've been trying to create an Expression for the Save File action of the Edit Box. This is how it works (part of the app):

    When user clicks on a line in the Datagrid, then clicks the BUILD button, it generates an item listing based on cell data from the grid. Got that bit working great!

    You can then click SAVE button, to save the file (I'm hoping automatically rather than via selector) and have the file named depending on the line selected in the Datagrid. EG: "item1.txt" or "item27.txt" etc.

    The expression to use for the PATH to saving the file is confusing me - this is the expression I have currently which doesn't save the file:

    (The files are in a sub-directory "ItemDescriptions" of the Application folder)...


    Appdrive$+Appdir$+"\ItemDescriptions\item"+Str$(Li neClick( "DataGrid" ))+".txt"

    Am I anywhere near close? Or am I chasing a non-succeedable goal here?!

    Thanks for any help as usual

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: How Do I Write This Expression Please?

    It looks pretty good to me..

    The Appdrive+appdir bit will place the location exactly in the same folder as the application file. You will then be putting the file into the "\ItemDescriptions\ Folder. The file name will be called item+lineclick.txt.

    Seems ok, is it not working?

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Location
    Canberra, Australia
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Do I Write This Expression Please?

    Nope! I've been double checking everything and it would seem it should work. I've tried it without the sub directory too and no luck there either. Dohhhhhh

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: How Do I Write This Expression Please?

    Instead of saving make it add the expression to a list box and see what is says.
    .:::.Joshtek.:::.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: How Do I Write This Expression Please?

    Yes as Joshtek says, put it into an edit box as what you will find sometimes is an extra \ or something like that which stops it from working correctly.

    The other option if possible is to upload the example and we can take a look at it.

    Thanks

    Jason

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    Canberra, Australia
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Do I Write This Expression Please?

    Hmmm. Well now I know you don't need the "\" preceeding the subdirectory, as it adds one automatically. If you have the backslash, it makes TWO backslashes!

    BUT, even after fixing that in the Save action, it still doesn't work (I had my hopes up!).

    Anyway, the entire path is correct, I even copy/pasted the resulting string into WinExplorer to be sure! It just won't SAVE the darn file. :-S

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: How Do I Write This Expression Please?

    Can you upload an example, or email me it?

    Thanks

    Jason

  8. #8
    No Products Registered

    Join Date
    Jul 2006
    Location
    Canberra, Australia
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Do I Write This Expression Please?

    Email is on it's way, thanks Jason

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    Canberra, Australia
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Do I Write This Expression Please?

    OH, hi Josh, thanks for your idea, sorry was too busy reading and thought it was Jason again, LOL. Only just noticed Jason's post after yours too, I must have not refreshed before replying to your post... that I thought was Jason's... bedtime almost I think ;-o

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: How Do I Write This Expression Please?

    Interesting, it looks like its working for me?

    You click on the build button, and then save, and i look in the itemdescriptions folder and there is a item1, item2 etc text file.

    Perhaps ive misunderstood the problem?

    Jason

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. [Fusion 2.5] Expression editor - unable to write
    By qenio in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th December 2013, 07:42 AM
  2. Write to an array?
    By Keli in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th July 2009, 09:45 AM
  3. How can I write " in the expression editor?
    By Pablo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st August 2007, 02:53 PM
  4. How to write " in a string using Expression Editor
    By MelliGeorgiou in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 15th August 2006, 01:58 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
  •