On the following code, can you show me why the meter does not paint ? Thank you.
- Code: Select all Expand view
FUNCTION Main
.
.
.
MsgMeter( { | oMeter, oText, oDlg, lEnd | CreateTag( OMeter, oText, oDlg, @lEnd, "Name", "Field1") },;
"Mantenimiento ..." )
.
.
.
RETURN
PROCEDURE CreateTag (OMeter, oText, oDlg, lEnd, cTagName, cKey, cCondition, lDescend)
*
* This PROCEDURE creates index TAGs.
*
MEMVAR cKeyField, cForCond
PRIVATE cKeyField, cForCond
IF VALTYPE(lDescend) != "L"
lDescend := .F.
ENDIF
cKeyField := cKey
oMeter:nTotal := (LASTREC())
IF cCondition != NIL
cForCond := cCondition
IF ! lDescend
INDEX ON &cKeyField TAG (cTagName) FOR &cForCond EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )
ELSE
INDEX ON &cKeyField TAG (cTagName) FOR &cForCond EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) ;
DESCENDING
ENDIF
ELSE
IF ! lDescend
INDEX ON &cKeyField TAG (cTagName) EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )
ELSE
INDEX ON &cKeyField TAG (cTagName) EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd ) ;
DESCENDING
ENDIF
ENDIF
RETURN
* EOP: CreateTag