User:anonymousLog inRegister
Recents:
ToFormattedString Function

Scope

Objects: Procedures, Transactions, Web PanelsWork Panels
Languages: .NET, Java, Ruby, Visual FoxPro

Purpose

To return a string that results from applying an attribute/variable picture to its value.

Syntax

ToFormattedString( 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

Created: 07/29/08 04:37 PM by prodml Last update: 08/03/10 06:49 PM by blima ginzo
 
Page
Categories
Group
 
Powered by GXwiki 3.0 (generated with GeneXus X Evolution 1 U3)