From: Rodrigo M. <rod...@te...> - 2004-05-02 22:40:08
|
Hi All Some know if there is a windows replacement for Inkey() function ? Let me explain, i'm working on nonblocking querys for postgres, then, i send the query to database and i check time by time if result is ready. Doing that in clipper, cause the aplication freeze: PQsendQuery(conn, 'SELECT * FROM huge_table') do while .t. if PQconsumeInput(conn) if ! PQisBusy(conn) exit endif endif inkey(1) <----------- I need replace this function for another one that not freeze my aplication enddo res := PQgetResult(conn)) for x := 1 to PQlastrec(res) for y := 1 to PQfcount(res) ?? PQgetvalue(res, x, y), " " next next PQclear(res) PQclose(conn) Regards Rodrigo |