ph_fill PowerHome formula function
Description
The same as the "fill" function but will not
bomb on negative repeat numbers. This function is used to build a
repeating string of
characters.
Syntax
ph_fill ( fill, repeat
)
Argument |
Description |
fill |
String. The string or character to use for the fill.
This string will be repeated for the number of times in the repeat
parameter. |
repeat
|
Long. The number of times to repeat the
fill parameter.
|
Return value
String. Returns the completed
fill pattern.
Usage
Use this function to create
repeated strings.
Examples
The following examples demonstrate typical syntax/usage for this function.
ph_fill(" ",30) This function will return a
string of 30
spaces.
ph_fill("abc",40) This function will
return the string
"abcabcabcabc".