Sign in to follow this  
Followers 0
Shonnie

String Splitting and Subtracting A Character From a String

2 posts in this topic

$level = StringSplit(_IEBodyReadText($oIE), @CR)
$level1 = StringSplit($level[2], ":")
$level2 = ($level1[2] - ")")

MsgBox(0, "", "Level: " & $level1[2])
Exit

Well, it works for the most part, in the message box it says Level: xx)

Don't want a ')', So I added - ")" which I figured would work :)

Doesnt, searched some posts on the forums here, nothing came up

<_<

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

This will remove one or more ")" in $level2

$level2 = StringReplace($level2, ")", "")

Also I don't think you can remove a character from a string using that syntax

Edited by picaxe

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