It looks like you're new here. Sign in or register to get started.
Morten Solberg wrote: Hi ombacke look at CodeUnit 6201 Conventions
TextToInteger(VarText : Text[250]) : Integer EVALUATE(VarInteger,VarText); EXIT(VarInteger);
EVALUATE(MyInt,MyTxt);
MyInt := CU6201.TextToInteger(MyTxt);
Comments
EVALUATE(Integer, string)
Or
IF EVALUATE(Integer, string) THEN
if you want to avoid runtime errors.
look at CodeUnit 6201 Conventions
Thank you Morten
I did not know this codeunit actualy, but it is very nice!
Use this funtion
Basicly the same, but provided by Navision 8)
I think we should put this on the tips and tricks forum.
There is only one tiny little problem, the codeunit is only provided with commerce portal, so you will have to copy and paste the functions since not all customers have c.p.
RIS Plus, LLC
But there are functions in this codeunit that are more complex, you should copy this to your codeunit if you want to use these.