Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Glen Villar
  Where is Glen Villar?
 Cabanatuan
 Philippines
 Glen Villar
 To: madhan mo
  
 
 
 madhan mo
 Tags
Subject: RE: prg function calling from form
Thread ID: 210985 Message ID: 211056 # Views: 23 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Other
Date: Friday, January 09, 2009 5:55:51 AM         
   


> 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.

The form must have been dropped upon with a class named oAP. Usually, class with methods executed like that are based on a custom class added onto the form.

If you do find such class in your form, open it with a class browser so can see all its methods and properties. The .PostPtAccrual may possibly be a method in the oAP as it has been called with parameters as shown in your example above.

(coffee)
DeepLogic Computers & Software / Acer Lending Investor



COMPLETE THREAD
prg function calling from form Posted by madhan mo @ 1/8/2009 6:32:07 PM
RE: prg function calling from form Posted by Borislav Borissov @ 1/8/2009 6:34:40 PM
RE: prg function calling from form Posted by madhan mo @ 1/8/2009 6:42:25 PM
RE: prg function calling from form Posted by Borislav Borissov @ 1/8/2009 6:59:27 PM
RE: prg function calling from form Posted by Glenn Villar @ 1/9/2009 5:55:51 AM