web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

    This is perfect, thanks.

    Thomas

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans