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

Getting Array length after split command

Status
Not open for further replies.

kristof

Programmer
Jun 2, 2000
234
BE
Hi all,

What I am trying to do is this:

newArr = Split(someString, ",")
arrLn = Len(newArr)

But I get this error:
Type mismatch: 'arrKeywords'

Is there another function I should use or what?
Or am I doing something wrong?

Thx,

Kristof
 
Try the following: -

arrayLength = ((UBound(myArray) - LBound(myArray)) + 1)

If you are using option base 1 remove the +1 above

Tom.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top