conditional formating

edited 2:15AM in FastReport 4.0
Hello,

I want to know if it is possible to set a conditional format of a datafield in a script ?

For example:
the datafield is a float number.
if the number <=9999 I want 4 number after the decimal point (452.0000)
but if the number > 9999 , I want 2 number after the decimal point (12000.00)

Is it possible to write this on the 'onbeforeprint' event ?

regards

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.