Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Delete code across functions in new NAV 2016 C/AL Editor?

Posted on by 6,071

Hi Experts,

Except starting with old editor parameter, do anybody know why we cannot delete code across functions in new NAV 2016 C/AL Editor?

12_2D00_10_2D00_2015-3_2D00_43_2D00_52-PM.png

*This post is locked for comments

  • 4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    Thank you All! It's impossible mission :-)

    I know that we can use old editor in NAV 2016 as mentioned in my question, but it's inconvenient, and how about when Microsoft stops supporting old editor!

  • Verified answer
    mmv Profile Picture
    mmv 11,465 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    Hi,

    In your selection, you have included the Function name also (Local MyFunction(.....)) , Delete helps you to delete the code block inside the function.  So if you restrict the selection only to the code block, it will get deleted.  If you want to remove the Function altogether, you need to go the conventional View -> C/AL Globals -> Functions, select the function and delete using F4.

  • Verified answer
    ksundeep87 Profile Picture
    ksundeep87 800 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    Hi Khoa,

    True, we cannot delete multiple line across different functions in NAV 2016. Earlier I missed it i was checking in single function.

    As suggested by Rashed use old editor mode we can do that but you will miss intellisense.

    Go to your CMD and try the below to open with Oldeditor

    C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client>finsql.exe useoldeditor=yes

    or

    Right click the NAV 2016 short cut and change Target as below

    Old-editor.JPG

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,137 Super User 2024 Season 2 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    yes, Now I see it and its not possible. sorry

  • Verified answer
    Rashed Profile Picture
    Rashed 3,765 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    The issue is deleting a selection of code across multiple triggers/functions.  And you cannot do that in the new editor.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,137 Super User 2024 Season 2 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    I can also delete multiple lines using "delete" key

  • Verified answer
    Rashed Profile Picture
    Rashed 3,765 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    Open the dev client with the old editor mode and delete what you need.

  • 4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    Still cannot delete all code with one Delete, F4 or Backspace key stroke :-(

    I'm using NAV 2016 build 9.00.43402 too.

  • ksundeep87 Profile Picture
    ksundeep87 800 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    I am using NAV 2016 Version (9.00.43402) CU1.

  • 4BzSoftware Profile Picture
    4BzSoftware 6,071 on at
    RE: Delete code across functions in new NAV 2016 C/AL Editor?

    Which build do you use?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans