Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Parsing a string

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,812
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Parsing a string
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Parsing a string - 3/27/2003 1:31:33 PM   
  mistux

 

Posts: 2
Score: 0
Joined: 3/27/2003
From:
Status: offline
I need to parse the following string:

"( B Panel 48.1248 X 93.5 CRS Gage 16)"

I need:
1. The letter preceding the word "Panel" in this case "B"
2. The number following the word "Panel" in this case "48.1248"
3. The number following the word "Gage" in this case "16"

Everything else "should" stay constant, i.e. the format. Although the actual values will change and the length of them.

I know that I can use InString, but the code is driving me crazy!

Can anyone help me?
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Parsing a string Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts