Dev()

Locates and returns device object given its index.

DEV() devnum=Integer Absolute index of the object.

example:

	# Close the third device
	# and the current device
	>> device/close dev(3)
	>> device/close dev(devnum=0)

Dev

This is one of four functions which return a reference to a graphical object when given index information about the location of the object in the graphics object subsystem ( Dev(), Pic(), Win() and Obj() ).

Positive numbers give the number of the object in its list, starting at 1. Negative numbers give the number of the object starting from the last item in the list and counting backwards, starting at -1 (this is often the easiest way to find objects). Zero represents the last object created, normally the current object.

All open genie devices are stored in a single device list so it is only necesary to specify from a small number of devices. By default, device windows are labelled with the number of the device.

Parameters:

Devnum (Integer)

The position within the device list of the required device.

RESULT = (Gobject)

Returns the device specified.