The logic behind spellcheck and find functions

T

trebor

How does the interaction of forms in functions like FindText work? I'm
talking only about the interaction of the forms and how they exchange
data.

For example, when you search for text, the search form obviously must
access the text in the editing form, but I'm not having any luck doing
that.

I've done a few multiple-form projects, where one form opens another
form, and then gets or sets values in that other form, but something
like FindText seems to be different. Here, one form opens another, but
then it's the subordinate form that gets or sets values from the parent
form.

When I try to do that, I don't get errors, but I just get 0 or "".

Any help is greatly appreciated.
 
F

Fergus Cooney

Hi Trebor,

Sounds interesting. But it would help if you post some code and describe
more about what you're doing.

If I were doing this, I would be unlikely to have a FindForm do the actual
searching. I would have it gather the parameters and then pass them to a
searching class. This would, amongst other things, allow searches to be done
within and by the application, yet without requiring a Form.

Regards,
Fergus
 
T

trebor

Fergus Cooney said:
Sounds interesting. But it would help if you post some code and describe
more about what you're doing.

If I were doing this, I would be unlikely to have a FindForm do the actual
searching. I would have it gather the parameters and then pass them to a
searching class. This would, amongst other things, allow searches to be done
within and by the application, yet without requiring a Form.

Boy, this newsgroup is busy! I'm going to have to rethink my question,
and then post back. Thanks for your reply.

I'm still changing paradigms from the old structured way to the new OO
way, and for some reason, I think of forms as logical modules instead of
just means to collect and display information. Your suggestion not to
have the code behind the FindForm do the actual searching points to a
way I had not seen, so thanks.
 
F

Fergus Cooney

Hi Trebor,

Yrrrr welcome.

Lader Dude,
Fergus

Busy tonight?? Yep, well chatty, so it is.
 

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