Specifications

CHAPTER 24 DataWindow Expression and InfoMaker Functions
Users Guide 699
LenA
Description Reports the length of a string in bytes.
Syntax LenA ( string )
Return value
Long. Returns a long containing the length of string in bytes if it succeeds and
–1 if an error occurs.
Usage LenA replaces the functionality that Len had in DBCS environments in
InfoMaker 9. In SBCS environments,
Len and LenA return the same results.
See also Len
Log
Description Gets the natural logarithm of a number.
Syntax Log ( n )
Return value Double. Returns the natural logarithm of n. An execution error occurs if n is
negative or zero.
Inverse
The inverse of the Log function is the Exp function.
Examples This expression returns 2.302585092:
Log(10)
This expression returns -.693147 ... :
Log(0.5)
Both these expressions result in an error at runtime:
Log(0)
Log(-2)
Argument Description
string The string for which you want the length
Argument Description
n The number for which you want the natural logarithm (base e). The
value of n must be greater than 0.