I want to know if there is a simple way to change the message in a MsgMeter like in the following code:
Code: Select all
FUNCTION ReportToExcel(oBrwI, aData)
MsgMeter( { | oMeter, oText, oDlg, lEnd | ;
ToExcel ( oMeter, oText, oDlg, @lEnd, oBrwI, aData) },;
"Sending data to Excel", "Please stand by..." )
RETURN NIL
STATIC FUNCTION ToExcel( oMeter, oText, oDlg, lEnd, oBrwI, aData )
LOCAL oExcel := ExcelObj()
LOCAL oBook := oExcel:WorkBooks:Add()
LOCAL oSheet := oBook:ActiveSheet
LOCAL oRange, n :=1, nRows := Len( aData ), nCols:= Len(aDatos[1]), oCol
...
...
/* 1st phase here ********/
While n <= nRows .AND. ! lEnd
oRange:Rows( n+2 ):Value := aData[ n ]
oMeter:Set( n++ )
End
...
/*2nd phase here *****
* need to change progress bar dialog message to "Getting graphs from data" */
...
IF lEnd
MsgAlert( "Report cancel by user", "Excel" )
Else
MsgInfo( Len( aData ), "Total animals in these sequence:" )
EndIf
RETURN Nil
Emiliano Llano Dïaz