Jump to content
Sign in to follow this  
Shonnie

String Splitting and Subtracting A Character From a String

Recommended Posts

Shonnie

$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
picaxe

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.