home *** CD-ROM | disk | FTP | other *** search
- Function Rep_String ( Length : String_Length ;
- CH : Char ) : Field_String ;
-
- (*
- This function is similar to the STRING$ function in MS-BASIC.
- It will return a string of length LENGTH filled with the
- character CH.
-
- LENGTH must be in the range 1..255. If it is not, an empty
- string will be returned.
-
- This function was written by Paul D. Guest and released
- to the Public Domain by same without restrictions on use,
- and with no monetary return expected or desired. Please
- direct comments or questions to the author via "The Indy
- Connection" RBBS @ (317) 846-8675 (24 hrs,7 days/week --
- Paul & Greg McLear, sysops).
- (Enjoy! - pdg 2/85)
-
- *)
-
- Var
- Count : Integer ; (* Number of 'CH' placed in 'CH_String' *)
- CH_String : Field_String ; (* String containing 'CH' Characters *)
-
- Begin (* Function Rep_String *)
-
- CH_String := '' ;
-
- If Length IN [ 1 .. 255 ] Then
-
- For Count := 1 to Length Do
- CH_String := CONCAT ( CH_String , CH ) ;
-
- Rep_String := CH_String
-
- End (* Function Rep_String *) ;
-