Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

C/AL Editor - How can I edit variable in function header? Blocked for editing?

Posted on by Microsoft Employee

Big newbie (with experience in VB and SQL) question here: I'm editing some C/AL code on a report. Everything makes sense, but I have a block of code I'm trying to update and that seems locked for editing.  The code looks like this, except the red-font text has a light grey background in my editor window. I want to change the 21 to 22. How can I do it?

 

ProcessRecord(VAR RowData : ARRAY [21] OF Text[250])

CLEAR(SalesLine);
SalesLine.INIT;
SalesLine."Document Type" := SalesHdr."Document Type";
\\etc., etc.

Thanks for your input,

Thomas

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: C/AL Editor - How can I edit variable in function header? Blocked for editing?

    This is perfect, thanks.

    Thomas

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: C/AL Editor - How can I edit variable in function header? Blocked for editing?

    You need to put the cursor inside the ProcessRecord Function > Click View > C/AL Local > Here you will see RowData as Variable  > Select that line > Click Shift + F4 (Properties) > Change Dimensions property Value to 22..

    8688.2.png

    8688.2.png

    Hope this helps.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans