>Hello All,
>
>I have a puzzling question. I have an array of objects which I am using as a sort of Matrix. Say I have an object an I want to determine if it is in the array and if so return the element of the array. According to the Hacker's Guide I cannot use Ascan for Objects. Does anyone know of another way to call Ascan (or something similar) with out having to create a second array?
>
Hi Matt,
You can loop thru array and check for an object
lnItem = 0
loObject = ...
FOR i=1 TO ALEN(laMtarray)
IF laMtarray[i] = loObject
lnItem = i
EXIT
ENDIF
ENDFOR
IF lnItem > 0
ELSE
ENDIF
If array is 2-D you can get row and column using ASUBSCRIPT( ) Function.
--sb--