Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Working with PawCom V260 in VFP7

Status
Not open for further replies.

andypolymath

Programmer
Joined
Jan 10, 2005
Messages
2
Location
US
Good morning. I am relatively new at Visual FoxPro and would appreciate any help with this issue. One of our clients wants to extract accounting information from Peachtree Complete Accounting, modify it in Visual FoxPro, and import it back into PT. PawCom provides a com interface to the PT data and since our company owns a copy I was leaning towards a solution using PawCom.

Unfortunately, I am not sure how to access the PawCom.dll. Do I need to create a PawCom class that incorporates the PawCom functions I want to call? If so what is the proper syntax and how do I activate PawCom.dll? Thank you for your time and consideration.

Sincerely, Andy
 
You should be able to create an object based on the classes in the DLL and then use the properties and mthods of that object. I'm doing something similar with Sage accounts based on an interface in TE.DLL:

Code:
loSIheader = Createobject("TE.SIheader")
With loSIheader
  .Account_Ref = Thisform.txtCustomerCode.Value
  .Invoice_Type_Code = 2
  .SI_Name = Thisform.txtCustomerName.Value
   
  .SIitems.Add ( ;
    IN_SERVICECODE, ;
    ThisForm.txtheader.Value, ;
    ThisForm.edtItemDescription.Value, ;
    "", ;
    "", ;
    "")
EndWith

Geoff Franklin
 
Thanks Geoff. I'll try creating a PawCom object and see what I can accomplish from there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top