Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I parse out results

Status
Not open for further replies.

3587ch

Technical User
Jun 19, 2009
30
US
I have a third party function that does a process I pass it some parameters in the sParams string and then it returns a number of parameters in a result string.

How can I get just the parameters out of the Result variable?

Call pressLink(Me.hwnd, sParams, Result)
 
How are ya 3587ch . . .

Have a look at the [blue]Split[/blue] function.

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
any reason you are not using a Paramarray?
 
The Split() worked great, may I ask another question?

How do I get everything to the right of a = sign in a string?

So if I have a variable sACCOUNT that has ACCOUNT=1234567

How can I get just the 1234567?

Thank you,
 
yourAccountVar = Mid(sACCOUNT, 1 + Instr(sACCOUNT, "="))

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top