Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,143
Jainam M. Kothari 1,694 Super User 2025 Season 2
YUN ZHU 1,067 Super User 2025 Season 2