User:anonymousLog inRegister
Recents:
ToFormattedString Method

Scope

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

Purpose

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

Syntax

att | &var.ToFormattedString()

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 Numeric, Date, DateTime, Char and VarChar type. In the case of attributes/variables 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 on the KB).

Example

If we have a variable &Total(10, 2) with Picture "Z,ZZZ,ZZ9.99" and the value is 4395.35, the &Total.ToFormattedString() function will return the " 4,395.35" string.

See Also

ToFormattedString Function

Created: 12/16/09 02:43 PM by dmarquez Last update: 07/14/10 03:35 PM by dmarquez
 
Page
Categories
Group
 
Powered by GXwiki 3.0 (generated with GeneXus X Evolution 1 U3)