User Tag List

Results 1 to 5 of 5

Thread: Array Trouble

  1. #1
    No Products Registered

    Join Date
    Jan 2008
    Location
    Earth!
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Array Trouble

    I'm trying to save & load arrays a directory but i'm unsure what file format they are in. I always thought they were .arr but when I try load them using:

    AppDataDirectory$( "File" )+"\dep"+"str.arr"

    I get a syntax error. I even tried:
    AppDataDirectory$( "File" )+"\POLR"+"\dep"+"str"

    and got the same error.

    Thanks for your help in advance

  2. #2
    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: Array Trouble

    Your expression refers to the file object, so it won't work if you don't have that object in your frame. To see what path it generates, set a string object to the same expression and see what it comes up with. The file extension used by the array object is .arr by default, but it can be anything so long as there is consistency.

    An example of how to use arrays should be on MMF2 CD #2 under \Objects\Array\array.mfa.
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Trouble

    AppDataDirectory$( "File" )+"\dep"+"str.arr"

    if DEP is a folder you need to change it to:

    AppDataDirectory$( "File" )+"\dep\str.arr"


  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Trouble

    The file format doesn't matter, the syntax error is probably because of you writing something wrong in your expression.
    Why did you include "\POLR"+"\dep"? The expression should be a path to the file. ex: Apppath$ + "data\str.arr"

  5. #5
    No Products Registered

    Join Date
    Jan 2008
    Location
    Earth!
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Trouble

    Sry that was a mistake.
    I'm trying to make it read from the Application Data folder because I'm running vista and MMF2 won't write to the application's directory.

    I tried:
    AppDataDirectory$( "File" )+"\dep\str.arr"
    still got a syntax error

    EDIT: Joshtek was right, I forgot to include the file object. My bad. I'll be certain to check out those tutorials on the MMF CD Thanks guys for your help.

Similar Threads

  1. Dynamic Array - Sort 2 dimension array by Column 1
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th December 2012, 04:54 AM
  2. Array save trouble
    By Om1nO in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 19th October 2011, 12:07 PM
  3. Dynamic Array to Binary Array problems
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd March 2010, 10:48 PM
  4. [Request] Array of array - possible for $$$
    By Blizna in forum Extension Development
    Replies: 9
    Last Post: 29th December 2007, 11:13 PM
  5. Array trouble
    By stuckboy in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th December 2006, 07:43 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
  •