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!

Query a String 1

Status
Not open for further replies.

stikare2

Programmer
Mar 7, 2002
3
GB
Hi,

How do I check for the number of ^ in a string. I want to check that my input file contains all the specified input fields before proceeding with my validations. My input file should contain 52 fields each delimited by ^

Any suggestions welcome.

Regards,
S
 
str = "This^is^a^test^of^the^split^function"
aSplit = Split(str,"^",-1,1)
WScript.Echo "There are " & UBound(aSplit) & " ^ in the string." Jon Hawkins
 
Dear Jon,

Thanks for your tip. My knowledge is doubling up everyday ;)

Best Regards,
Sushil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top