function searchArray(array arrayName,findValue)
numeric foundPos,itr;
do itr = 1 while itr <= tblrow(arrayName) and not foundPos
if arrayName(itr) = findValue then
foundPos = itr;
endif;
enddo;
searchArray = foundPos;
end;
numeric foundPos,itr;
do itr = 1 while itr <= tblrow(arrayName) and not foundPos
if arrayName(itr) = findValue then
foundPos = itr;
endif;
enddo;
searchArray = foundPos;
end;