Equinox Online Help - Language Reference - A to Z

Home

Fill

Applies to
SyntaxFill DataItem, StringExpression [, RepetitionsExpression]
Action [Statement] Fills an existing string with copies of a smaller string.
ScopeUsable anywhere
Notes

This statement fills a character field, variable, or workarea with copies of a string. DataItem is the name of the field, variable, or workarea and StringExpression is the duplicated character string. You can specify the number of copies that are inserted, using the RepetitionsExpression argument. If you omit RepetitionsExpression, then copies of StringExpression are inserted until DataName is full.

Note that you may use a memo field for DataItem. If you omit RepetitionsExpression, the length of the memo is not increased.

CategoryString handling
See Also ChrList, Chrs, Compare, Fill, IsNumber, Left_Function, Len, Match, Maxlen, Mid_Function, Remove, Replace, Right_Function], Search_SearchNext, SetLen, SetMaxLen, SortOrder, SubstituteData
Example

This example fills a workarea with four copies of Hello.

Fill banner, "Hello ", 4