Jump to content
Sign in to follow this  
cppman

Intsplit ?/

Recommended Posts

cppman

Is their any way to split an integer?

like $a = "String"

StringSplit($a, "S")

is their any way to do that with an integer?

$a = 5006

IntSplit($a, 5)

is their any way at all for doing this?

it sounds kinda retarded but... im just wondering, it would be a bit useful...

Share this post


Link to post
Share on other sites
cppman

oh. I did'nt klnow u could use string split for integers too...

thanks!

Share this post


Link to post
Share on other sites
billmez

oh. I did'nt klnow u could use string split for integers too...

thanks!

I believe stringslpit will work for any character. You can enclose the integer in qoutes in the StringSplit function. Of course if you don't know the character in advance, it won't help you. If you know the position of the digit you want to split on, you can use a combination of StringLen , StringLeft, and StringMid to split it.

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  

×