Find Contents

Anonymus
03/21/2006 11:47 am
Is it possible to execute the function `Find Contents` via OLE Interface?
Oleg Chernavin
03/21/2006 11:54 am
Not yet. Should it return a list of found filenames in the Project you supply to it?

To serve you better, can you please tell me, how you would use it and for which purpose?

Thank you!

Best regards,
Oleg Chernavin
MP Staff
Anonymus
03/21/2006 12:06 pm
> Not yet. Should it return a list of found filenames in the Project you supply to it?
>
> To serve you better, can you please tell me, how you would use it and for which purpose?
>
> Thank you!
>
> Best regards,
> Oleg Chernavin
> MP Staff

Thank You Oleg for the fast reaction!

I have to do my own GUI (so that the user only have to manage a program), but I want to use all the functions from OEE and TextPipe.
Oleg Chernavin
03/21/2006 12:25 pm
OK. What output format of this function would be good for you?

Oleg.
Anonymus
03/22/2006 02:22 am
> OK. What output format of this function would be good for you?
>
> Oleg.

Hi Oleg

It should be the same format as in Your GUI: A list with the Files where the Keyword(s) where found. Also should be possible to put the optional parameters like in Your GUI.

Thanks for help
Oleg Chernavin
03/22/2006 08:15 am
I thought more about this. Let`s make this function to look for keywords in one file only - not in the whole project. Searching within all files may take a long time and this will be hard to stop. With the single file approach you will use Project Map to cycle through its entries and request the search for each of them. You will be able to do the stop/resume features in your application easily.

Would you be satisfied with that?

Oleg.
Anonymus
03/22/2006 09:22 am
> I thought more about this. Let`s make this function to look for keywords in one file only - not in the whole project. Searching within all files may take a long time and this will be hard to stop. With the single file approach you will use Project Map to cycle through its entries and request the search for each of them. You will be able to do the stop/resume features in your application easily.
>
> Would you be satisfied with that?
>
> Oleg.

Oh yes I would!

Another question: should the option `download directory` not be a member of project instead of application?

Thanks
Oleg Chernavin
03/22/2006 09:26 am
It can be also a member of the folder and all Projects in the folder will use another download directory.

Oleg.
Oleg Chernavin
03/22/2006 09:53 am
I just added the search function. Here is the updated version:

http://www.metaproducts.com/download/betas/oee2357.ZIP

Here is the function:

function IMainOE.FindContentsInFile(const Filename: WideString; const Keyword: WideString; AllKeywords: Integer; InTags: Integer): Integer;

Oleg.
Anonymus
03/22/2006 10:22 am
> I just added the search function. Here is the updated version:
>
> http://www.metaproducts.com/download/betas/oee2357.ZIP
>
> Here is the function:
>
> function IMainOE.FindContentsInFile(const Filename: WideString; const Keyword: WideString; AllKeywords: Integer; InTags: Integer): Integer;
>
> Oleg.

Oleg, I thank You very mutch
Oleg Chernavin
03/23/2006 02:26 am
You are welcome! Have you tested this feature already?

Oleg.
Anonymus
03/24/2006 03:52 am
> You are welcome! Have you tested this feature already?
>
> Oleg.

Hi Oleg,

I tested it, but the function allways returns 0! What happens wenn the file is not found?
Oleg Chernavin
03/24/2006 04:12 am
It will return 0 if file not found, cannot be opened or no keyword is found there.

Oleg.