[next] [prev] [prev-tail] [tail] [up]

#### SetLength

Declaration:
  Procedure SetLength(var S : String; Len : Longint);
Description:
  SetLength sets the length of the string S to Len. S can be an ansistring, a short string or a widestring. For ShortStrings, Len can maximally be 255. For AnsiStrings it can have any value. For AnsiString strings, SetLength must be used to set the length of the string.
Errors:
  None.
See also:
  Length (527)

Listing: refex/ex85.pp

Program Example85;
{ Program to demonstrate the SetLength function. }
Var S : String;
begin
FillChar(S[1],100,#32);
Setlength(S,100);
Writeln ('"',S,'"');
end.

[next] [prev] [prev-tail] [front] [up]