set talk on set talk window noshow && This is a tip from Mike Y to prevent any unwanted user messages to the screen select ... set talk off>Although not a great solution, we use SET TALK ON.
>pn_Count = pn_Count + 1 >IF MOD( pn_Count, 10 ) = 0 && This is .T. every 10 records. > * Update progress bar here. > ? pn_Count >ENDIF > >RETURN .T. >>
>PRIVATE pn_Count >pn_Count = 0 >SELECT * FROM MyTable WHERE Test() AND (...other conditions...) >>