calculation result plus text

Avatar

Avatar

meem23

Avatar

meem23

meem23

23-12-2014

I would like a field to display the result of a calculation, a space and then the word “Days”.

I’m using the following calculation in TextField3:

form1.#subform[0].TextField3::calculate - (FormCalc, client)

If (TextField1 > 0) then

TextField2/TextField1

endif

example: TextField2 = 10, TextField1 = 2, TextField3 result is 5.

How do I get TextField3 to display 5 Days?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372
_Bruce_Robertson
MVP

31-12-2014

Hi,

If you change TextField3 to a numeric field you will be able to use the display pattern of

num{zzzzzzzzzzzz9' days'}

or if you want fractions of days then

num{zzzzzzzzzzzz9.99' days'}

Regards

Bruce

Answers (0)