LOCAL ARRAY aTest[6,2] aTest[1,1] = "abc" aTest[1,2] = "123" aTest[2,1] = "abc" aTest[2,2] = "XXX" aTest[3,1] = "abc" aTest[3,2] = "123" aTest[4,1] = "abc" aTest[4,2] = "XXX" aTest[5,1] = "abc" aTest[5,2] = "1233X" aTest[6,1] = "abc" aTest[6,2] = "XXX" nEle = ASCAN( aTest, "XXX", 9, -1, 2, 0 ) WAIT WINDOW " found XXX in elem " + ALLTRIM(STR( nEle )) *-- The nEle returned in 0I thought that above expression should look for value "XXX" in the second column of two-dimensional array, starting with element 9. I thought it would find the element aTest[6,2] but it does not.