Variable Assignments

FarayiFarayi Member Posts: 11
Silly Question - but I do not have an answer for it!

I would like to copy a text variable into a decimal type variable

decimal := text;

What or which function should I use in Navision to make this possible.

I cannot proceed.


Best regards,
Africa

Comments

  • gurleengurleen Member Posts: 39
    Use codeunit 6201 ( conventions) . It has all the conversion functions.
  • charlpcharlp Member Posts: 21
    Or simply use the EVALUATE function : [Ok :=] EVALUATE(Variable, String)

    EVALUATE returns TRUE if the conversion was successful.
  • FarayiFarayi Member Posts: 11
    Thanks guys! I do not know what I would do without you!
    Africa
  • tammakittammakit Member Posts: 5
    Ex:

    IF EVALUATE(dec2,'1000') THEN
    dec1 := dec2;
Sign In or Register to comment.