Windows API "Find" Function

P

PC User

I see a lot of programmers in Access discussion forums recommend using
Window's API functions and I'm perticularly interested in information
and/or examples of the usage for the "Find" function available through
API. I've searched many Access forums and didn't find anything. The
MS Knowledge base is very criptic and I was hoping that someone in
this forum would have a sample DB that shows how this works.

Thanks,
PC
 
B

Brendan Reynolds

Grab the API Viewer from

http://www.activevb-archiv.de/downloadstore/apiviewer/apv2004_v310.exe

There doesn't appear to be any 'Find' function. There's a FindExecutable
function, a FindFirstFile function, a FindNextFile function, a FindWindow
function, and several other FindSomething functions, but no 'Find' function.
What is it you want to find, anyway? You may not need an API function at
all.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
P

PC User

I wanted a find dialog for searching a rich text field. I'm limited
to using MS Richtext ActiveX and it has a function that I don't know
how to get to work. In the object browser it's usage format is
Function Find(bstrString As String, [vStart], [vEnd], [vOptions]) As
Long. If I understand it right the bstrString is the string that is
the keword in the search, vStart and vEnd are the limits of the search
(ie SelStart = 0 and SelLength = L), but now what are the vOptions?
Can anyone clarify the usage of this function or have an example of it
being used? Otherwise I was thinking that there might be an API type
of dialog box for finding text in a field whether it was a text field
or a richtext field.

Thanks,
PC
 
B

Brendan Reynolds

I'm just on my way out, and unfortunately don't have time to check this, but
I expect that the best place to find the documentation you need is probably
the MSDN library ...

http://msdn.microsoft.com/library

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
P

PC User

I see a lot of programmers in Access discussion forums recommend using
Window's API functions and I'm perticularly interested in information
and/or examples of the usage for the "Find" function available through
API. I've searched many Access forums and didn't find anything. The
MS Knowledge base is very criptic and I was hoping that someone in
this forum would have a sample DB that shows how this works.

Thanks,
PC
 
B

Brendan Reynolds

From the earlier posts in this thread, I think what you really need is the
documentation for the rich text box ActiveX control. Unfortunately, the last
time I remember seeing any documentation for that control was in the printed
Visual Basic 6 and Office 2000 Developer documentation, which I can no
longer locate. And I am unable to research the question myself, as Access
2003 doesn't seem to like the rich text box control that is present on my
system. (Quite possibly I don't have a design-time licence, because I don't
have VB6 or Office developer tools installed on this PC). I'm sorry I can't
be more help. If no one else replies here, I'd suggest starting a new thread
with a subject line that specifically mentions the rich text box control.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
Top