BoxDef Function

Returns whether Box has been defined or not.

Syntax
BoxDef(AreaNum[, robotNumber])

Parameters

AreaNum
Specify the number (an integer from 1 to 15) of the entry detection area whose status is to be returned.
robotNumber
Specify the robot number as an integer value. If omitted, currently selected robot will be used.

Return Values
True if approach check area is defined for the specified area number, otherwise False.

See Also
Box, BoxClr, GetRobotInsideBox, InsideBox

BoxDef Function Example
This example uses BoxDef function in a program.

Function ClearBox

   If BoxDef(1) = True Then
      BoxClr 1
   EndIf
Fend