SELECT TOP 2 posR FROM PageTwo ORDER BY posR DESC INTO ARRAY Maxrows nfisrtposR=Maxrows(1) nSecondposR=Maxrows(2)However, i a case I am encountered with a situation where there is no posR in Pagetwo and at that situation my program generates error as Maxrows(1).prg does not exist.