home *** CD-ROM | disk | FTP | other *** search
- Type
- String255 = String[255];
- {$V-} { Relax String Length Checking. }
-
- { **********************************************************************
- *** StringOf ***
- ***-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=***
- *** This function returns a string of the character represented by ***
- *** ASCIINUM repeated NUM times. This is similar to BASIC's STRING***
- *** function. ***
- ********************************************************************** }
-
- Function StringOf(ASCIINum,Num: Byte): String255;
-
- Var
- Str: String255;
- StrLen: Byte absolute Str;
- S: Byte;
-
- Begin
-
- StrLen := Num;
-
- For S := 1 to Num Do
- Str[S] := Chr(ASCIINum);
-
- StringOf := Str;
-
- End;