setX

setX(x: Integer) updating;

The setX method of the Point primitive type sets the x (horizontal) value of the receiver.

The following examples show the use of the setX method.

newPoint.setX(distance.Integer);

redrawGraph() updating;
vars
    gLine       : Object;
    objectArray : ObjectArray;
begin
    drawNew;
    foreach gLine in objectArray do
        gLine.GLines.drawNew;
        gLine.GLines.lastPoint.setX(0);
        gLine.GLines.redrawGraph;
    endforeach;
end;