It looks like you're new here. Sign in or register to get started.
text_variable := FORMAT(integer_variable)
matttrax wrote: You can't assign text to an integer. If you want to have a separate variable that stores the text version of that number you can do: text_variable := FORMAT(integer_variable)
text_var := '2000'; EVALUATE(MyInteger,text_var); if MyInteger > 1000 then //code goes here
Comments
It's not possible convert text to integer ?
My sample code:
text_var := '2000';
if text_var > 1000 then
....
...
Exist a solution ?
Thanks
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
declare a variable as integer and write a line like:
EVALUATE(myInt, myText);
the expression errors out when it's not possible to comvert to integer...
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
RIS Plus, LLC