Re: how to search d15?



Or just use the code I've posted yesterday :)

/Henning

"Dave O." <nobody@xxxxxxxxxxx> skrev i meddelandet
news:Oej0OQ9lHHA.492@xxxxxxxxxxxxxxxxxxxxxxx
How about splitting the file on "d" then looking at the first 2 characters
of each array element?
It should work, but I'm too busy to write a test example right now.

Pseudo code
1) Split file
2) loop 1 to Ubound
3) Is first char numeric
3a) If 1st char is "1" check second character

Dave O.

"Jeff Johnson" <i.get@xxxxxxxxxxx> wrote in message
news:utl1RYwlHHA.4768@xxxxxxxxxxxxxxxxxxxxxxx
"Rick Rothstein (MVP - VB)" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx> wrote in
message news:%23YZjBVwlHHA.4872@xxxxxxxxxxxxxxxxxxxxxxx

A) I read the OP's needs as wanting to search for ALL occurrences of
the
keywords, not just one and then get out. Look at the code: he's
concatenating the results into the label text in a loop. That
suggested
the desire to get multiple results to me.

That may be what I have been missing in this thread... I got locked on
his wanting to find only the largest d# in the string (not completely
sure why; probably because of the "I got d1 instead of d15" comment).

Which STILL doesn't make sense, even with the code sample kaps FINALLY
provided! Getting "d1" even though there's only "d15" in the text? Sure,
that's obvious, since it's a substring. But not getting "d15" AT ALL?





.



Relevant Pages

  • Re: how to search d15?
    ... How about splitting the file on "d" then looking at the first 2 characters ... but I'm too busy to write a test example right now. ... concatenating the results into the label text in a loop. ... But not getting "d15" AT ALL? ...
    (microsoft.public.vb.general.discussion)
  • Re: Web query
    ... Forget the codes mentioned eariler ... Do While .busy: DoEvents: Loop ...
    (microsoft.public.excel.programming)
  • Re: Web query
    ... ate = ActiveCell.Value ... Do While .busy: DoEvents: Loop ...
    (microsoft.public.excel.programming)
  • Re: Web query
    ... Do While .busy: DoEvents: Loop ... Application.SendKeys ("{TAB 7}") ...
    (microsoft.public.excel.programming)
  • Re: Common Lisp implementations are still multiple times slower than C
    ... ARRAY element type when doing MAKE-ARRAY. ... that a simple-vector can hold every element. ... used "(loop for y fixnum from 0 below height..." ...
    (comp.lang.lisp)

Loading