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

String Issue

Status
Not open for further replies.

Lobmeister

Programmer
Jul 25, 2001
16
GB
I have a collection of string values which contain any or all of the values "1st", "2nd".....up to "8th" OR "n/a"

What i need to do is first discard those with value "n/a" then order the remaining strings, "1st" to "x th"

..any help gratefully appreciated

Elliot




 
..none of any use - im new to this !! - i looked at collections - but can't find a way of ordering the strings
 
I'm not sure what you are trying to accomplish, but maybe I can help.

Looking for a string within a string can be accomplished fairly easy with a For/Next

get the string Txt

do a length

LN = len(Txt)

For I = 1 to LN
"" look for the text here"""
Next I

then you can look for the string by doing a comparison.

Look at the Mid and InStr functions

Hope that helps to get you started.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top