Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324

    Need a function for letter help.

    Basically I have this string:

    "Blah blah, <This is an> example".

    I'm trying to get inbetween the < and the > removed.
    So I'm looking for it to turn out as:

    "Blah blah, example".

    I'd seriously appreciate help.

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    here you go

    Code:
    function RemoveString(strText)
    	local nStart = String.Find(strText, "<", 1, false);
    	local nFinish = String.Find(strText, ">", nStart, false);
    	local strTrim = nFinish-nStart+1
    	local strRemove = String.Mid(strText, nStart, strTrim);
    	return String.Replace(strText, strRemove, "", false);
    end
    
    
    --test
    Dialog.Message("Notice", RemoveString("Blah blah, <This is an> example"));
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Genius!

    Thank you!

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    np m8
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    Hey Shadow, just wondering, what part of london you in, im in West, Shepherds Bush
    Open your eyes to Narcissism, Don't let her destroy your life!!

  6. #6
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    I live in Carshalton, in surrey.

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    cool, do you know the sutton arms (in sutton), my bro used to run it
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. FREE UTILITY: AMS Code Pretty
    By CyberRBT in forum AutoPlay Media Studio 7.5 Examples
    Replies: 58
    Last Post: 07-06-2008, 04:49 AM
  2. buttons disappear
    By mgokkaya in forum AutoPlay Media Studio 6.0
    Replies: 5
    Last Post: 04-11-2008, 02:40 PM
  3. Another tough one... Interaction between Web and AMS
    By Agent Jones in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 08-18-2005, 02:10 PM
  4. Bizarre Callback Function Behaviour - Can anyone help?
    By SRJ in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 06-30-2004, 09:16 PM
  5. Function: Resize & Center an Image
    By kpsmith in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 01:36 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