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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trim

Status
Not open for further replies.

danarashad

Programmer
Nov 2, 2006
115
US
Is there anyway to do a trim off extra character. Example I an unknown variable i.e question10. I never know what that value is so I am using QUERY_STRING variable. And that tells me if it's, question1, question10 or whatever. But since its a url variable, it adds the = after the question10. Is there a way I can trim off everything after the = just so i get the question1, question10, or whatever number variable.

Thanks for your help.
 
Either extract the parameter from the URL structure, or use list functions with a delimiter of "="

#ListRest("question10=blah", "=")# ...or
#ListLast("question10=blah", "=")#
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top