Find Method

Object List Next Object

Defined By:
ObjectBox

Description:

Locates the position of a particular gadget in the ObjectBox. If the gadget is not in the box, 0 is returned.

Declaration:

Function Find(ByVal obj As Object) As Integer

Details:

The gadget positions will start at the upper left corner of the ObjectBox and proceed to the right of or beneath this position depending on the TileDirection property setting. If TileDirection is set to Horizontal, then gadget 2 will be located to the right. If TileDirection is set to Vertical, successive gadgets will located below.

Find can be used as a complement to the At function. For example, you can use Find to first return the position of a Gadget, then use that position with At to return the same gadget as shown below:

Gadget = At(ObjectBox.Find(Gadget))