Parsing exported objects (text files)

sinergysinergy Member Posts: 5
hello,

i'd like to write a codeunit that parses the documentation trigger (got marks in the textfile like DOCSTART & DOCEND) of an exported textfile object, but can't find anything about parsing (google and forumsearch).

thanks for your replies.

regards,
frank.

Comments

  • kinekine Member Posts: 12,562
    For syntax parsing exists tool with name yacc (and lex), but I think it is not what you want... :-), but may be it will help you... or you can use awk command for windows to "filter out" lines you need...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • sinergysinergy Member Posts: 5
    Firstoff, thanks for your answer.
    You are right, that is not the solution that I'am looking for. I want parse the text-based objectfile to store it in tables later.
  • jhoekjhoek Member Posts: 216
    VBScript version 5.0+ provides a regular expression object that you can use from C/SIDE. I won't say the learning curve for regular expressions is very flat, but they are very powerful once you master their syntax. Search the Microsoft site for Windows Scripting documentation for more info.

    The other nice thing is that VBScript is already installed on most computers, as it is either part of the OS itself, or is shipped with a particular, highly popular webbrowser... :wink:

    Good luck!
    Kind regards,

    Jan Hoek
    Product Developer
    Mprise Products B.V.
  • sinergysinergy Member Posts: 5
    thanks but i dont want to use so many automations.
    any other solutions?
Sign In or Register to comment.