You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
objNum as integer
objName as string
imgNum as integer
dim objData() as t_objData
` Return the array index if object number is found in the array.
` Return -1 if object number is not found in the array.
` Check to be sure the value returned is not equal to -1
` before using the value returned to index the array.
function FindArrayIndexFromObjectNumber(objNum as integer)
local i as integer
local index as integer
local arrelem as integer
index = -1
arrelem = array count(objData())
for i=0 to arrelem
index = i
Login to post a reply