How to Export To OLD Syntax

NavImprNavImpr Member Posts: 7
Hi,

I'm a developer currently working with some installations of Business Central 14 OnPremise.
Despite the transition to the development in AL, I still need to make some customization the old way with C/AL and development environment and therefore I still need to merge object in txt.
When I export the txt object from some databases I get the new syntax with the LineStart at the beginning of the functions, and with some others not.
I don't really understand on what this depends but this obviously makes the merging more difficult. How can I disable this and export always in the old syntax?

Thanks,

Answers

  • ThalonThalon Member Posts: 10
    To do some thread necromancy as I've had the same topic today..
    As far as I can tell this lines get added when you have AL symbols in your database.

    As we've enabled this in our database recently I have extended a tool of mine with some cleanup functionality today.
    Essentially it enables you to view which files are in an object export and allows you to split it to individual files.
    j5fr9zyd488b.png

    It has two modes.
    One splits the file using my own parsing code. It's the slower version and can't join them afterwards, but works just from the executeable alone.
    The second is enabled if you add a folder named (exactly) "NAV Object Splitter" as a subfolder. If this exists on startup it will use "NavObjectSplitterConsole.exe" from that folder for the "Export All" and "Join All" functionality. This very well known tool was developed by Carsten Scholling and can be found here:
    https://mibuso.com/downloads/nav-object-splitter-v3000

    In both cases it will remove the StartLine-Lines from the exported objects.

    My tool can be found here:
    https://e.pcloud.link/publink/show?code=XZMmuTZPwKyJtywEqQFRSn5RX0y9hu65bny

    I hope it can be of use for someone. It does support a filename as a start parameter or dragging on the EXE-file, but you can also drag the NavObject-TXT file onto the GUI after starting it.
    It only works for TXT, not for FOB and not for AL.
Sign In or Register to comment.