KE50
Programmer
- Jul 3, 2012
- 10
What could i be doing wrong with the code below;
The error appears on the "IDCust" line
Code:
//Create the header
InvHeader.RecordCreate(2);
InvHeader.Cancel;
InvHeader.Fields.Item('CNTBTCH').Value := InvBatch.Fields.Item('CNTBTCH').value;
InvHeader.Fields.Item('CNTITEM').PutWithoutVerification('1');
InvHeader.Fields.Item('IDCUST').Value := TempHeader.IDCust;
InvHeader.Fields.Item('PROCESSCMD').PutWithoutVerification('4');
InvHeader.Fields.Item('INVCDESC').PutWithoutVerification(TempHeader.InvcDesc);
InvHeader.Process;
The error appears on the "IDCust" line