Sign in to follow this  
Followers 0
Dark_Raver

removing part of a sting

4 posts in this topic

probably realy simple but i cant find the solution muttley

the first 2 words are allways the same (it retrieves the string from a textfile) and those need to be removed

i tried to find a solution to this numerous times but never found it :)

any help is apreciated :(

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

look at StringReplace and or StringTrim..

one way:

$string = StringReplace($string,"two words","")

edit:removed unnecessary quoted text.

Edited by flyingboz

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

So..?

$string="Hello World!"
$string=StringTrimLeft($string,6)
MsgBox(0,"String",$string)

muttley

Edit: Meh!

Edited by monoceres

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

ghaghga muttley

i never saw that function :)

now im ashamed of myself ._.

thank you guys :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0