> > In the command button, I have the following coding
> >
> >
IF !EMPTY(ThisForm.txtRecDate.Value) AND !EMPTY(ThisForm.txtVendorinvoicenumber.Value) AND thisform.checkduedate()
> > ThisForm.oAP.PostPtAccrual(v_apinvoice1.Apinvoiceid,v_apinvoice1.invRecDate)
> > thisform.Release()
> > ELSE
> > ThisForm.oAP.PostAPInvoice_(v_apinvoice1.Apinvoiceid,v_apinvoice1.sessiondate)
> > thisform.txtduedate.setfocus
> > ENDIF
> >
> > thisform has defined a property oAP that is setted with .NULL. value
> > postptaccural() function is present in cap.prg program.
> >
> > when executing the line
> >
> >
ThisForm.oAP.PostPtAccrual(v_apinvoice1.Apinvoiceid,v_apinvoice1.invRecDate)
> > I am getting error as "Property PostPtAccural is not found"
> >
> > Please help me to correct this error.
>
>
> You can't call a function like the way you call it. Just call its name:
>
> ...
> IF !EMPTY(ThisForm.txtRecDate.Value) AND !EMPTY(ThisForm.txtVendorinvoicenumber.Value) AND thisform.checkduedate()
> PostPtAccrual(v_apinvoice1.Apinvoiceid,v_apinvoice1.invRecDate)
> ...
>
> And I hope you have SET PROCEDURE TO CAP.PRG line somewhere in your main PRG.
> -----------------
> Borislav Borissov
>
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller>
The only thing normal about database guys is their tables.Thanks for the reply, Borislav.
In other command button,some programmers used
thisform.oAP.GetHighestInvoiceLine(v_APInvoice1.APInvoiceId) + 1
that line works fine. GetHighestInvoiceline is anothe function which is available in cap.prg.
and I searched main.prg for
set procedure to cap.prg
that is not available in main.prg.