Search words in array?

D

Dr.Ile

Hello,

Can you help me out with this problem:
I have an array DXF with m elements. In these m element are differen
numbers and also words. I want to count (find) all the words LINE i
this array. Why this procedure want work:

For i = 1 To i = UBound(DXF)
If DXF(i) = "LINE" Then
n = n + 1 ‘n=number of words LINE in array
End If
Next i


Or if I turn my question little different:
How can I search for perticular words in array?

Thank you in advanc
 
N

NickHK

Dr.Ile,
Depending how your array is created, is the lowest index = 1 ?
For i = LBound(DXF) To i = UBound(DXF)

How does this "not work" ?

NickHK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top