QP School

Full Version: String manipulation in Object pascal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
program StringManipulationExample;
begin
  // Variable declaration
  var
    name: String := 'John Doe';
    length: Integer;

  // Get the length of the string
  length := Length(name);

  WriteLn('Name:', name);
  WriteLn('Length of name:', length);
end.