User Tag List

Results 1 to 4 of 4

Thread: Removing file extensions when loading a Filelist

  1. #1
    No Products Registered

    Join Date
    Apr 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Removing file extensions when loading a Filelist

    Ok, I want to load a filelist into a List object, but how can I remove the extensions at the end of a filename (.txt for example) when displaying them in the list object? I remember reading something about this using a string parser/fastloop/another list object but I forgot what to do exactly.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing file extensions when loading a Fileli

    Use the File object to "Get Title"... I think that's what it's called. Basically, if you give it the string "C:\MyDocuments\MyFile.txt" then it will figure out that "MyFile" is the title.

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Removing file extensions when loading a Fileli

    Yeah just start a fastloop that runs the number of times that there is lines in the list.
    In each loop you add this as a new line:
    FileName$("File Object" listGetAt$("List Object", 1 ))
    //I don't remember the exact names for the expressions so copy-pasting the above would most likely not work

    Then you also delete line number 1.
    When the loop is done you should have a list only with filenames and no file-extensions behind.

  4. #4
    No Products Registered

    Join Date
    Apr 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Removing file extensions when loading a Fileli

    Thanks, I got how to do it.

Similar Threads

  1. List Object txt file load removing blank lines
    By AyreGuitar in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th July 2013, 09:40 AM
  2. Removing Extensions
    By Crusaderp in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd August 2012, 02:39 AM
  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. [Crash][MMF2U] Extensions which aren't loading
    By Fanotherpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 22nd January 2011, 09:02 AM
  5. Loading old examples with converted extensions
    By burkey in forum Extension Developers Lobby
    Replies: 11
    Last Post: 24th August 2006, 03:11 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
  •