:twisted: :twisted: :twisted:
I'm trying to get a Decimal value from a table ( DettProvvigioniPrezzi."% Provvigione" ) and convert it in Text of lenght 2 (variable Val).
Val := FORMAT(DettProvvgioniPrezzi."% Provvigione");
Debugging I can see that DettProvvgioniPrezzi."% Provvigione" is equal to 5, but making conversion the var Val become equal to 0! Why?? I thinked it's due to lost of information during conversion and so I tried using a Text of 30 but it's the same thing!! Someone can help me please?? I'm working with Navsion since few days and I have understand many things..... ](*,) ](*,) ](*,) ](*,) ](*,) ](*,) ](*,) ](*,)
Kiki
0
Comments
DettProvvigioniPrezzi.caclfields("% Provvigione");
before your line. A flowfield is a field that looks into anther table and displays the value. When you code you have to write calcfields in order to calculate the value at run time.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
IF DettProvvigioniPercentuali."% Provvigione" = 0 THEN BEGIN -> Here is 5
Val := '0';
END ELSE IF DettProvvigioniPercentuali."% Provvigione" <> 0 THEN BEGIN -> Here is 5
Val := FORMAT(DettProvvgioniPrezzi."% Provvigione"); -> Here set VAl to 0???!!!
END;
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n