Announcements
No record found.
Is it possible to convert Code[20] to Integer if Code is all numbers?I am trying to do a SetRange but my parameters are of these two different types: SetRange(Integer, Code[20]). I am trying to convert Code to Int so that this range works
For that you can use the evaluate function.
docs.microsoft.com/.../evaluate-function
Evaluate(myInt,myCode);
Hi jdrco ,
Please try below code
text_var := '2000';
EVALUATE(MyInteger,text_var);
if MyInteger > 1000 then
//code goes here
That is MyInteger here?
MyInteger is the variable of type int that you want to store your converted code field into.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,946 Super User 2026 Season 1
YUN ZHU 1,177 Super User 2026 Season 1
Khushbu Rajvi. 555 Super User 2026 Season 1