Specifications
CHAPTER 24 DataWindow Expression and InfoMaker Functions
Users Guide 679
Fact
Description Gets the factorial of a number.
Syntax Fact ( n )
Return value
Double. Returns the factorial of n.
Examples This expression returns 24:
Fact(4)
Both these expressions return 1:
Fact(1)
Fact(0)
Fill
Description Builds a string of the specified length by repeating the specified characters
until the result string is long enough.
Syntax Fill ( chars, n )
Return value
String. Returns a string n characters long filled with repetitions of the
characters in the argument chars. If the argument chars has more than n
characters, the first n characters of chars are used to fill the return string. If the
argument chars has fewer than n characters, the characters in chars are
repeated until the return string has n characters.
Usage Fill is used to create a line or other special effect. For example, asterisks
repeated in a printed report can fill an amount line, or hyphens can simulate a
total line in a screen display.
Examples This expression returns a string containing 35 asterisks:
Fill("*", 35)
Argument Description
n The number for which you want the factorial
Argument Description
chars A string whose value will be repeated to fill the return string
n A long whose value is the number of characters in the string you
want returned