User Tag List

Results 1 to 4 of 4

Thread: How can I recognize individual letters in a string?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I recognize individual letters in a string?

    I am working on a project that involves recognizing particular characters in a string, but I don't know how to achieve that.

    What I want to do is, say I had the Global String A set to "abc".

    I want Fusion to check to see if the first letter of the string = a. If it does, I want it to do something.
    Then I might want Fusion to check the last letter and to see if it = c. If it does, I want Fusion to do something else.

    I need to recognize the individual letters. Can someone please help me to achieve this?

    Thanks in advance
    Simflare

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Paul_Boland's Avatar
    Join Date
    Jun 2006
    Location
    Waterford, Ireland.
    Posts
    2,739
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is an example file that reads each letter of a string. Once you can read each letter, you can then do what you want based on what each letter is. Hope it helps you out.
    Attached files Attached files
    KnightTrek Productions
    http://www.knighttrek.com

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    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)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,030
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    There is also this thread http://community.clickteam.com/threads/83951-Question-about-strings that may help you out.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you I believe I have it working now

    I achieved it by using the "compare two general values" and then comparing two alterable strings.

    Then I can use the mid$ function to isolate individual letters. Thanks to both of you

Similar Threads

  1. Individual word by word string comparison?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th May 2013, 05:52 PM
  2. Number of string letters to a value
    By cajujoe in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th August 2011, 10:23 PM
  3. way to search/replace individual letters in string
    By method72 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th October 2010, 08:16 PM
  4. String Parser - Get individuall letters
    By LB in forum File Archive
    Replies: 8
    Last Post: 26th April 2008, 03:59 PM
  5. Remove letters and words from a string
    By Popcorn in forum File Archive
    Replies: 7
    Last Post: 17th December 2007, 06:49 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
  •