... STATIC FUNCTION ChkCursor(n, oDbf, oDlg) local hWnd := GetActiveWindow() if hWnd != oDlg:hWnd if n == 0 SetWindowText(hWnd, "Rows completally retrieved: "+ Transform(oDbf:RecCount(), "999,999")) else SetWindowText(hWnd, "Rows retrieved so far: " + Transform(n, "999,999")) ...