I am not sure I understand. Do you mean compile the progress bar into a com exe or the call to the sp. It was my understanding that a com exe can't have a UI?
>Try to compile it into COM EXE.
>
>>
>>PUBLIC loProgress
>>loProgress = CREATEOBJECT("ProgressIndicator")
>>loProgress.setup("Calculating Payments", 1, 1, 0, .T., .F.)
>>loProgress.show()
>>inkey(4)
>>lnHndl = sqlconnect("yak")
>>?SQLSetProp(lnHndl,"Asynchronous",.t.)
>>?SQLEXEC(lnHndl,"call sp_CalculatePayments(13)","test",la)
>>
>>
>>As soon as I called sqlexec() the progress bar quit moving until the sp was done (about 10 seconds).
>>