VBScript String

They have: 39 posts

Joined: Jun 2000

is it possible to get the position of a character ina string using vbscript?

e.g.
PSA00006PME00004PMP00002T1@4

is it possible to find the position of @ char in the above string??

Thanks

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

strSomething = "PSA00006PME00004PMP00002T1@4"
intPosition = InStr(strSomething, "@")
'This will match the first instance of @.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.