web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Maximun Length

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

   How much maximum length can be given for Code DataType variable.

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Zaid Tariq Profile Picture
    2,274 on at
    RE: Maximun Length

    If used as a field in table then: 250

    If used as variable in C/AL code then: 1024

    You can use the function MAXSTRLEN(Field or Variable Name)

    Ref: erpinfos.blogspot.com/.../microsoft-dynamics-nav-string-function.html

  • Verified answer
    CristianAguerre Profile Picture
    147 on at
    RE: Maximun Length
    • 250 in the table
    • 1024 in character you can write in 

    msdn.microsoft.com/.../dd355278.aspx

    The link is the MSN there are all of the basic concepts your need.

    Regards

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans