Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format in report
Message
From
24/05/2009 11:57:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Format in report
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01401692
Message ID:
01401692
Views:
88
I have a table with the fields:
codigo c(10),designacao c(40),value n(6,2),num_of_showed_decimal_places i(4)
I want to condicionaly show in the report the value with zero,one or two decimal place acording with the(num_of_showed_decimal_places)

1º If the value stored in the table is 10.22 and the num_of_showed_decimal_places=2 The report show 10.22
2º If the value stored in the table is 10.20 and the num_of_showed_decimal_places=1 The report show 10.2
3º If the value stored in the table is 10.20 and the num_of_showed_decimal_places=0 The report show 10

Sorry for my bad English.
Thanks in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform