Function reference
Builds a string of the specified length by repeating the specified characters until the result string is long enough.

Fill ( chars, n )

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

data type: 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.

Example 1
This expression returns a string containing 35 asterisks:
Fill(‘*’, 35)

Last modified: 23 May 2021


Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment