WorkerBeeJ
Programmer
I'm having trouble accessing the first element of a collection created with a regular expression. I know that the regular expression execute is working correctly because I can iterate through the entire collection with a for each statement. But I only need the first element. Can anyone tell me what I'm doing wrong here?
'''''Begin partial code
DO WHILE NOT rs.EOF
add1 = rs.Fields("Address1"
if not isNull(add1) then
set words = wholeWordRegExp.Execute(add1)
set word = words(0)
'do other stuff
end if
rs.MoveNext
LOOP
'''''End partial code
Thanks!
'''''Begin partial code
DO WHILE NOT rs.EOF
add1 = rs.Fields("Address1"
if not isNull(add1) then
set words = wholeWordRegExp.Execute(add1)
set word = words(0)
'do other stuff
end if
rs.MoveNext
LOOP
'''''End partial code
Thanks!