Difference between revisions of "TRANSFORM()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to perform picture formatting
 
Function to perform picture formatting
 
  
 
==Syntax==
 
==Syntax==
 
TRANSFORM(<exp>, <expC>)
 
TRANSFORM(<exp>, <expC>)
 
  
 
==See Also==
 
==See Also==
[[@...GET]], [[IIF()]], [[STR()]]
+
[[IIF()]], [[STR()]]
 
+
  
 
==Description==
 
==Description==
The TRANSFORM() function allows formatting of <exp> using a picture string <expC> in a similar way to the @...GET command.  TRANSFORM() returns a character string formatted as requested. TRANSFORM() is particularly useful for redefining field widths when formatting reports or forms.
+
The TRANSFORM() function allows formatting of <exp> using a picture string <expC>.  TRANSFORM() returns a character string formatted as requested.
 
+
From version 9.3.3 onwards, the TRANSFORM() function can be used to return a numeric as a hexadecimal.
+
 
+
  
 
==Example==
 
==Example==
Line 27: Line 21:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Expressions and Type Conversion]]
+
[[Category:Formatting Functions]]
[[Category:Expressions and Type Conversion Functions]]
+

Latest revision as of 08:29, 4 February 2013

Purpose

Function to perform picture formatting

Syntax

TRANSFORM(<exp>, <expC>)

See Also

IIF(), STR()

Description

The TRANSFORM() function allows formatting of <exp> using a picture string <expC>. TRANSFORM() returns a character string formatted as requested.

Example

total = 3001.23
? transform(total, "$$$$$9.99")
 $3001.23
 
? transform((0x1a * 2),"@0")
0x00000034