It looks like you're new here. Sign in or register to get started.
txtVariable := '010107'; EVALUATE(dateVariable, txtVariable); MESSAGE(FORMAT(dateVariable));
txtVariable := '123.45'; EVALUATE(decimalVariable, txtVariable); MESSAGE(FORMAT(decimalVariable));
txtVariable := '010107'; EVALUATE(dateVariable, txtVariable); MESSAGE('%1',dateVariable);
txtVariable := '123.45'; EVALUATE(decimalVariable, txtVariable); MESSAGE('%1',decimalVariable);
IF EVALUATE(dateVar,txtVAR) THEN ;
Comments
Text to decimal
and
And do not forget that somewhere is the '.' used as decimal point and somewhere ','. And that somewhere you can have ',' as thousand separator.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.