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 ^
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.