Hi there,
I am currently trying to search for a certain String in a Textfile. I never did that before since I am pretty new to Navision and my first idea was to read the File-Variable in a BigText-Variable and search inside of this BigText-Variable for the different positions of the string I am looking for. But this won't work because the STRPOS-function can't be used in combination with a BigText-Variable as it seems.
I searched this forum but could not find a fitting solution to my problem.
Do you have any suggestions on how to search for a certain String in a Textfile? As easy as possible ;-)
Thanks in advance,
SOV
0
Answers
FileVariable.TEXTMODE(TRUE);
Is that correct?
RIS Plus, LLC
I now tried it like this:
FileVariable.READ(Line_Variable);
since "FileVariable.READTEXT", as you suggested, unfortunately didn't work.
When I want to find e.g. the substring "codeunit" in a text-variable, then I thought one would do that like this:
IF LineVariable = '*@codeunit*' THEN ...
But that won't work. :-(
Could anyone tell me what would be the correct way to achieve this last point?
Cheers,
SOV
Thanks for your help.
SOV