Sign in to follow this  
Followers 0
borup

How to remove minus from string

3 posts in this topic

Hi.

I have a string called

$STRIng = "241RH-ZPJ8S-24235-EC329-F2747"

or somethimes $STRIng = "241RHZPJ8S24235EC329F2747"

How do check for "-" remove them in the string??

/Thomas

Share this post


Link to post
Share on other sites



StringReplace()

$string = "241RH-ZPJ8S-24235-EC329-F2747"
$string = StringReplace($string,"-","")
msgbox(1,"",$string)

Share this post


Link to post
Share on other sites

Ohh THX :)

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