DarkBASIC Professional Help Wiki
Register
Advertisement
Syntax


ResourceID = FIND FREE OBJECT( )
ResourceID = FIND FREE OBJECT (Start, RangeSize)


Description


Searches for an unused object ID.

The first function will search for and return an unused object ID within the range 1 to 262144.

The second function will search for and return an unused object ID within the range specified, but not outside of 1 to 262144.

If there is no free ID available, then a value of 0 will be returned.

Advertisement