General discussion


Split String

By bsmgopal1984 ·
Dear all,
I want to split a string into twoparts.
How to do it?
For example, If I assigned variable called usrnm having string "QWUS\M0392".
But I want to split into two parts or I need only "M0392" from the string.How can I get it?
Will Mid or Replace function help for this?
Please help me!
Thanks in advance!

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by lowlands In reply to Split String

You don't mention what script language you are using, but for vbscript the following example will work:

str = "QWUS\M0392"
a = Split(str, "\")
wscript.echo a(1)

So the Split function will work for you.

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums