Realbasic.Rect.Right

From Xojo Documentation

Property (As Integer )
aRealbasic.Rect.Right = newIntegerValue
or
IntegerValue = aRealbasic.Rect.Right

New in 2011r2

Supported for all project types and targets.

The right edge of the rect on the X axis. Changing this value will resize the rect.

Sample Code

This example moves the rect to the right by 50 pixels, keeping its height and width intact:

myRect.Left = myRect.Right + 50