Code:
SELECT Batch_no
SCAN
TEXT TO stra NOSHOW
SELECT cBatchNo,nPoDtlID,cPoLine,nBatchInvId,nSuplID,cSuplName,cPaymentCurr,nInvValue,nConvRate,cTag FROM MAS.dbo.vAcp_All_InvDtl WHERE nPoDtlID=?Batch_no.nPoDtlID AND cBatchNo NOT in (select cBatchNo from MAS.dbo.Acp_FinalPayment)
ENDTEXT
Use In Select('tempOutstanding')
SELECT Batch_no
SCAN
SQLEXEC(hndOps,stra,'_TempO')
If NOT Used('tempOutstanding')
Select * From _TempO Into Cursor tempOutstanding READWRITE
Else
SELECT tempOutstanding
APPEND FROM DBF('_TempO')
Endif
ENDSCAN
ENDSCAN
This is my code and when I use this code it takes more time to get my output. How can I get my output in less time?
Thank you.