// Run the query and retrieve the result line by linei is int = 0SQLExec("SELECT LASTNAME, FIRSTNAME, EXTENSION, PHOTO FROM CUSTOMER", "QRY1") // <--------WHILE SQLFetch("QRY1") = 0 // There is still another line to readi++// Retrieve the dataLASTNAME[i] = SQLGetCol("QRY1", 1)FIRSTNAME[i] = SQLGetCol("QRY1", 2)EXTENSION[i] = SQLGetCol("QRY1", 3){"IMAGE"+i} = SQLGetMemo("QRY1", 4)ENDSQLClose("QRY1")