ScopeObjects: Procedures, Transactions, Web Panels, Work Panels Languages: .NET, Java, Ruby, Visual FoxPro
PurposeTo return a string that results from applying an attribute/variable picture to its value.
SyntaxToFormattedString( att | &var )
Type Returned Character
Description
This function receives an attribute or variable as parameter and it returns a string that results from applying the attribute/variable picture to its value.
The function may be applied to attributes/variables of the Numeric, Date, DateTime, Char and VarChar type. In the case of attributes/variables of the Date and DateTime type, the date and hour format returned will depend also on the "Date Format" and "Time Format" property (both of them depend on the language established in the KB).
Example
If we have a variable &Total(10, 2) with Picture "Z,ZZZ,ZZ9.99" and the value is 4395.35, the ToFormattedString(&Total) function will return the " 4,395.35" string.
See Also
ToFormattedString Method
|