Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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
    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
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans