EricComnut
Programmer
Hi, we migrated our dll that connect to accpac from XAPI to COMAPI... Few things had change like the way we create view , open session.. change string and integer to olevariant but nothing major..
We can update and create customer, vendor in Accpac no problem
Now I just start testing the other options we have and see if the work and unfortunately I have a problem when I create an AR batch invoice list or an AP batch invoice list.
And the error is only an access violation. I spend a lot of time trying to figure out what it could be..
I recorded the macro in accpac to validate my code was not the same so I changed it.. even that didn't work out.
Checked with RVSPY and nothing is raised.
Here's what I have and my access violation happen on the PutWithoutVerification.
This code was working fine with XAPI
arrAccpacBatchAR0031[y].view.Browse ( '', False);
tmpValue := '1';
arrAccpacBatchAR0031[y].CNTBTCH.PutWithoutVerification(tmpValue);
arrAccpacBatchAR0031[y].View.Init;
Here is the macro
ARINVOICE3batch.Browse "((BTCHSTTS = 1) OR (BTCHSTTS = 7))", 1
ARINVOICE3batch.RecordCreate 1
ARINVOICE3batchFields("PROCESSCMD").PutWithoutVerification ("1") ' Process Command
They don't show the batch number and use the recordcreate.. so I did... And with this code I still have an access violation when I use the putwithoutverification.
Other places in the code we use the putwithoutverification and there is no problem...
Anybody would have an idea about what happen?
Thanks a million
We can update and create customer, vendor in Accpac no problem
Now I just start testing the other options we have and see if the work and unfortunately I have a problem when I create an AR batch invoice list or an AP batch invoice list.
And the error is only an access violation. I spend a lot of time trying to figure out what it could be..
I recorded the macro in accpac to validate my code was not the same so I changed it.. even that didn't work out.
Checked with RVSPY and nothing is raised.
Here's what I have and my access violation happen on the PutWithoutVerification.
This code was working fine with XAPI
arrAccpacBatchAR0031[y].view.Browse ( '', False);
tmpValue := '1';
arrAccpacBatchAR0031[y].CNTBTCH.PutWithoutVerification(tmpValue);
arrAccpacBatchAR0031[y].View.Init;
Here is the macro
ARINVOICE3batch.Browse "((BTCHSTTS = 1) OR (BTCHSTTS = 7))", 1
ARINVOICE3batch.RecordCreate 1
ARINVOICE3batchFields("PROCESSCMD").PutWithoutVerification ("1") ' Process Command
They don't show the batch number and use the recordcreate.. so I did... And with this code I still have an access violation when I use the putwithoutverification.
Other places in the code we use the putwithoutverification and there is no problem...
Anybody would have an idea about what happen?
Thanks a million