Method POP3Client():setProgressBlock() Professional

Set a code block for progress evaluation

:setProgressBlock( <bProgress> ) --> lSuccess
The code block to be evaluated when receiving e-mails.

The method returns .T. (true) when the code block was successfully assigned, or .F. (false) in case of a failure.


The code block passed to this method gets evaluated when data is received from the Pop3 server. Generally, the code block looks like this:

{|nReceived, nTotal, oSelf| ShowProgress(nReceived, nTotal, oSelf)} 

nReceived is the number of bytes already received from the Pop3 server. nTotal is the number of bytes that is expected to be received. The parameter oSelf is the object that is evaluating the code block.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.