Page 1 of 1

Function Similar to MsgRun()

PostPosted: Sun Dec 11, 2005 2:20 am
by Jeff Barnes
Hi,

Is there a function similar to MsgRun() that will display a message WHILE a user function is being run and keep the message there until the user function is completed.

I've tried MsgRun() but it seems to display the message AFTER the user function has been completed.

Thanks,
Jeff

PostPosted: Sun Dec 11, 2005 4:42 am
by DanielPuente
Jeff:

I user msgrun() this way and I don't have that problem, the message is correctly displayed:

MSGRUN("Esperando respuesta fiscal...","Conectando con IFiscal",{|| ejecuta(cticket,cDir,wLfact)})

Maybe a sysrefresh() after the msgrun() will help.

Regards,

PostPosted: Sun Dec 11, 2005 3:40 pm
by dutch
Dear Jeff,

Try this example will popup window for complete function before close MsgRun().

Regards,
Dutch

MsgRun('Please Wait, Report is processing.',,{|oDlg| ;
WaitRun('RRWRUN.EXE RREPORT '+str(RPT_NR,3)+' /H /B /WY /R'+cLibrary+' /ORROUT'+Strim(RPT_NR,3)) } )

PostPosted: Sun Dec 11, 2005 3:45 pm
by Jeff Barnes
Thanks Daniel / Dutch,

I have it working ... my mistake ... I was doing it this way:

MsgRun("Please Wait ... Generating Report",,MyFunction() )

I left out the {|| }

Thanks again.

Jeff