Skip to content

portl

Provide port access per longint.

Declaration

Source position: portsh.inc line 48

var
  portl: type

  tportl = object
  public
    property pp[w : Word]: LongInt read readport write writeport; default;
  end;

Description

Default instance of type TPortL. Do not free. This variable is initialized in the unit initialization code, and freed at finalization.

Since there is a default property for a variable of this type, a sentence as

portl[221]:=12;

Will result in the longint 12 being written to port 221, if port is defined as a variable of type tport