Guys:
Dealing with a large database (4.7 million records), the MsgMeter is too slow compared to the same index creation without a meter.
I DO want to show some sort of progress during index creation, how can I do it without such a performance penalty ? Thank you very much.
Dealing with a large database (4.7 million records), the MsgMeter is too slow compared to the same index creation without a meter.
I DO want to show some sort of progress during index creation, how can I do it without such a performance penalty ? Thank you very much.
MsgMeter( { | oMeter, oText, oDlg, lEnd | ;
BuildIndex( oMeter, oText, oDlg, @lEnd ) },;
"Building the Index..." )
USE
return nil
//----------------------------------------------------------------------------//
function BuildIndex( oMeter, oText, oDlg, lEnd )
FIELD Last
oMeter:nTotal = RecCount()
INDEX ON Last TO CustLast ;
EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )