ex72.pp 298 B

1234567891011121314151617
  1. Program Example72;
  2. { This program demonstrates the FormatBuf function }
  3. Uses sysutils;
  4. Var
  5. S : ShortString;
  6. Const
  7. Fmt : ShortString = 'For some nice examples of fomatting see %s.';
  8. Begin
  9. S:='';
  10. SetLength(S,FormatBuf (S[1],255,Fmt[1],Length(Fmt),['Format']));
  11. Writeln (S);
  12. End.