User Tag List

Results 1 to 2 of 2

Thread: Valid file name?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Lacey, WA
    Posts
    756
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Valid file name?

    I'm adding a custom save function instead of using Common Dialog. How can I check to make sure the file name the user has entered contains no special characters and can be used as a file name? (I'm using the Input Object to get the user to enter a file name)

  2. #2
    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: Valid file name?

    According to Windows, the invalid characters are:

    /\:*?"<>|

    So the easiest way would probably be to use the Quick Token Object's "Remove Characters" expression. If you want to simply remove them you can use the expression alone. If you want to see if the special characters are present, you can see if the string with characters removed and the string are different.

    And remember that you'll need another quote before the quote in the disallowed characters so MMF reads it as a string.

Similar Threads

  1. Help Objects: cheking a valid email
    By Ham in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 8th April 2010, 01:05 AM
  2. checking for a valid URL
    By JohnZ in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th September 2009, 04:25 PM
  3. Not a valid Win32 application?
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 1st September 2008, 08:26 PM
  4. Getting Valid Monitor Resolutions
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 26th March 2008, 11:23 AM

Posting Permissions

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