I have one more question for you experts. I would like to format a field to display the absolute value of the number. For example, if it displays "4.5" I would like it to display "4".
//locates the decimal
numberVar x := instr(1,cstr({yourNumberField}),'.') ;
//moves 1 place before the decimal
numberVar y := x - 1 ;
//displays the left portion of the string up to the decimal
Leftcstr({yourNumberField}),y)
//locates the decimal
numberVar x := instr(1,cstr({yourNumberField}),'.') ;
//moves 1 place before the decimal
numberVar y := x - 1 ;
//displays the left portion of the string up to the decimal
Left(cstr({yourNumberField}),y)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.