Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Merge objects

Posted on by 17

Hi,

I have created the merged file with original , modified and target objects to upgrade nav from 2015 to 2017. Is there any way to mass remove {>>>>>>>} ORIGINAL {=======} MODIFIED code since it takes some time to do it manually. 

Example

Double slash lines to be removed.

//{>>>>>>>} ORIGINAL
// ReservMgt.CreateTrackingSpecification(TrackingSpecification,
// DATABASE::"Prod. Order Line",
// ProdOrderLine.Status,ProdOrderLine."Prod. Order No.",'',ProdOrderLine."Line No.",0,
// ProdOrderLine."Variant Code",ProdOrderLine."Location Code",'','',
// ProdOrderLine."Qty. per Unit of Measure");
// ReserveSalesLine.CreateReservationSetFrom(TrackingSpecification);
// ReserveSalesLine.CreateReservation(
// SalesLine,ProdOrderLine.Description,ProdOrderLine."Ending Date",
//{=======} MODIFIED
// ReserveSalesLine.CreateReservationSetFrom(
// DATABASE::"Prod. Order Line",
// ProdOrderLine.Status,
// ProdOrderLine."Prod. Order No.",
// '',
// ProdOrderLine."Line No.",0,
// ProdOrderLine."Variant Code",
// ProdOrderLine."Location Code",'','',
// ProdOrderLine."Qty. per Unit of Measure");
// ReserveSalesLine.CreateReservation(
// SalesLine,
// ProdOrderLine.Description,
// ProdOrderLine."Ending Date",
{=======} TARGET
SalesLineReserve.BindToProdOrder(SalesLine,ProdOrderLine,

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Merge objects

    Shift+Ctrl+K to comment multiple lines

    Shift+Ctrl+K to uncomment multiple lines

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Merge objects

    Selected the required lines and Use Shift+Ctrl+O to uncomment the multiple lines

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans