SDK Enumeration question

SUGGESTED

Can anyone tell me where I can set or get the enumerated variables? For example in the sample code, they are referencing the following:
 

 

PeachwIEObj.peachwIEObjCustomerList

 

What does this equal if you are not using any of the sample programming languages? Is there is list or global variable declaration of these variables? For example, PeachwIEObh.peachwIEObjectCustomerList = 77 ? I am trying to export all inventory items so I am doing the following:


Dim Exporter As Export

Exporter = ptApp.CreateImporter(PeachwIEObj.PeachwIEObjInventoryItemsListField) but I am getting a compile error that
PeachwIEObjInventoryItemsListField is not a valid variable. Where can I get a list of what
PeachwIEObjInventoryItemsListField is equal to?


Thanks so much,

Dreamer

  • 0
    SUGGESTED

    Thanks to everyone for the help, I got my answer by looking at the peachw.tlh file, it had the values needed. I simply looked at the following declaration and found that number 17 was the inventoryitemslist I needed.

    enum PeachwIEObj

    {

       peachwIEObjVendorList = 0,

       peachwIEObjPurchaseJournal = 1,

       peachwIEObjPaymentsJournal = 2,

       peachwIEObjPurchaseOrderJournal = 3,

       peachwIEObjCustomerList = 4,

       peachwIEObjSalesJournal = 5,

       peachwIEObjCashReceiptsJournal = 6,

       peachwIEObjSalesTaxCodes = 7,

       peachwIEObjSalesOrders = 8,

       peachwIEObjSalesTaxAuthorities = 9,

       peachwIEObjCompanyInformation = 10,

       peachwIEObjAccountingPeriods = 11,

       peachwIEObjDefaultAccounts = 12,

       peachwIEObjElectronicBanking = 13,

       peachwIEObjChartOfAccounts = 14,

       peachwIEObjGeneralJournal = 15,

       peachwIEObjGeneralLedgerRows = 16,

       peachwIEObjInventoryItemsList = 17,

       peachwIEObjAssembliesJournal = 18,

       peachwIEObjAdjustmentsJournal = 19,

       peachwIEObjShippingMethods = 20,

       peachwIEObjItemTaxTypes = 21,

       peachwIEObjJobList = 22,

       peachwIEObjPhaseList = 23,

       peachwIEObjCostCodeList = 24,

       peachwIEObjEmployeeList = 25,

       peachwIEObjPayrollJournal = 26,

       peachwIEObjTimeTicketRegister = 27,

       peachwIEObjExpenseTicketRegister = 28,

       peachwIEObjCustomerDefaults = 29,

       peachwIEObjVendorDefaults = 30,

       peachwIEObjInventoryItemDefaults = 31,

       peachwIEObjJobDefaults = 32,

       peachwIEObjBillOfMaterials = 33,

       peachwIEObjWorkTicket = 34,

       peachwIEObjUnitMeasure = 35,

       peachwIEObjNumberOfObjects = 36

    };