Is it possible to execute the function `Find Contents` via OLE Interface?
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
> 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.
OK. What output format of this function would be good for you?
Oleg.
> 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
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.
> 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
It can be also a member of the folder and all Projects in the folder will use another download directory.
Oleg.
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.
> 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
You are welcome! Have you tested this feature already?
Oleg.
> 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?
It will return 0 if file not found, cannot be opened or no keyword is found there.
Oleg.