The with statement serves to access the elements of a record , without having to specify the name of the record. Given the declaration:
Type Passenger = Record Name : String[30]; Flight : String[10]; end; Var TheCustomer : Passenger;The following statements are completely equivalent:
TheCustomer.Name:='Michael'; TheCustomer.Flight:='PS901';and
With TheCustomer do begin Name:='Michael'; Flight:='PS901'; end;