The border of function can be applied to all regions, except sense region. The value returned is the integer value of the color associated with the border of the specified object. In addition to sense regions, the border of function cannot be applied to keys or dialog boxes.
If the border is invisible, ESL returns a negative integer value of the border color. If no border is defined, ESL returns the value -7 (invisible white).
For example, if you define a graphical region as follows:
green graphical region Go size 100 50 at position 10 10
blue border
then create a new object with the same border color:
response to NewScreen
add green graphical region GoSecond size 20 20
at position 10 10 in Screen2
color (border of Go) border
ESL returns the value 4 (for the color blue). (See Standard ESL Color Set for Standard ESL color values).