Click to See Complete Forum and Search --> : Ughhh..Shoot me now for this stupid question about arrays...


cmelnick
05-16-2003, 01:20 PM
Don't know what my problem is today...Major brainfart or something...

OK...


' Is a variable string...just an example
strQuery = "item1 item2 item3"

Dim attr
attr = Split(strQuery, " ")


How the heck do I figure out how many items are in the attr array? Been wracking my brain.

Thx in advance.

jrthor2
05-16-2003, 02:39 PM
I think you can do something like:

count = attr.Count (or it might by strQuery.count)

cmelnick
05-17-2003, 08:45 AM
Danke...

I knew count didn't work. At least UBound isn't TOO intuitive. I shouldn't feel SO stupid :)

Thanks again,
Chris