Declaration:  ResultPointY2: Double;
Returns the y2 coordinate from the last Getline or GetRect.

Source Code:

var
  x1, x2, y1, y2: double;

begin
  if getline(x1, y1, x2, y2, 'Click Points') = 1 then
    result := resultpointy2;  // should be same as x
end;