Kbase 35106: How to display negative number between parenthesis with Actuate
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/15/2000 |
|
Solution ID: P5106
GOAL:
How to display negative numbers between parenthesis with Actuate
FACT(s) (Environment):
Actuate
FIX:
Actuate does not provide a numeric format that permits negative numbers to be
printed between parenthesis. However, if you have the Actuate e.Report Designer Professional version, you can work around this limitation programmatically using the Actuate programming environment.
Place two controls on the report; one control will display the positive value
and other control will displays negative value. It is important to specify the
second control as Text. Depending on the value of the field (positive
egative)
you will display one or other control. This sample code demonstrates the logic:
Sub Finish( )
Super::Finish( )
Dim iFlow as AcFlow
Set iFlow = GetPageList().GetCurrentFlow()
Position.Y=iFlow.Size.Height - Me.Size.Height
If PositiveControl.DataValue<0 Then
PositiveControl.Size.Height=0
NegativeControl.DataValue = "(" & NegativeControl.DataValue &
")"
End If
End Sub