User Tag List

Results 1 to 5 of 5

Thread: delete last character in a string

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    delete last character in a string

    you can cut a string like this:
    casa345 casa34, casa3, casa, etc. ... with a single instruction?
    I must, in any event, clear the 'last character of the string, as happens on the PC keyboard by pressing the "del"
    Thanks

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Left$("The String", Len("The String")-1)
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks, but not work!! the name of my alterabile string is "name" Is correct? Left$("name", Len("name")-1)

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    sorry..Work fine...thanks LB, Very very THANKS :-)

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think that in MMF3, mid$() should be implemented like php's substr(). Then positive numbers would work as they do now, but negative numbers would have a purpose too. Like in this case, it'd be mid$("The String", 0, -1) to not include the last letter, or even mid$("The String", -6, -1) for "Strin"

    Oh, and Stochastic Utility can do exactly this.

Similar Threads

  1. [BUG/Beta 8] String limited character?
    By paobrasil in forum iOS Export Module Version 2.0
    Replies: 12
    Last Post: 17th January 2013, 01:37 PM
  2. Unable to change a string with the list obect if string contains three periods in row
    By redpandagames in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th January 2013, 04:01 PM
  3. Delete end of a string
    By EE in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th November 2012, 03:20 AM
  4. Using String Parser to check for any punctuation in a string
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th May 2012, 12:03 AM
  5. Character Image: Load Character Images from Folder
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th May 2011, 07:56 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
  •