Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

how to convert integer to text in nav 2016

(0) ShareShare
ReportReport
Posted on by

Hi experts,

Please tell me how to convert integer to text in nav 2016

Header3:=Header1-AgewseDate; this is integer filed i want to add  ">=" with is filed please tell me how its possible

i have used this code

Integer field := Header1-AgewseDate;

Text filed := '>=' + formate(integer field);

Evalute(header3,Text filed);

 

but getting error like this  can not convert  ">= " as integer.


please give any solution

 

 

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: how to convert integer to text in nav 2016

    To clarify other first time programmers like me:

    1. define a new global or local variable, which is defined as integer; eg. ToInteger

    2. the evaluate function will then be: EVALUATE(ToInteger, 'the strings, functions etc etc that you would like to convert into integer')

    Apparently the evaluate function would try to change the given values to whatever type of data the variable has been defined to be.

    And thank you for previous answers, they led the way!

  • Community Member Profile Picture
    on at
    RE: how to convert integer to text in nav 2016

    Hi Experts,

    Thank you for both replies i got a solutions.

    Thank you

  • Verified answer
    RockwithNav Profile Picture
    6,650 on at
    RE: how to convert integer to text in nav 2016

    EVALUATE is the standard keyword in NAV which converts almost every data type into the data type in which you want.

    EVALUATE(ConveertToInteger,Text)

    This will convert text into Integer.

  • Verified answer
    Andrey Baludin Profile Picture
    3,941 on at
    RE: how to convert integer to text in nav 2016

    Hi.

    Evalute(header3,Text filed) - this means that you try to convert text to integer.

    For convert in text you just need to use FORMAT();

    So simply use FORMAT(header3);

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