D
Diarmuid
Hi
I have to perform several actions on an Invoice. The Invoice can have 1
or 2 lines. So I created my own types for the header and the lines.
'*************************************
Type TranHeader
stAccCode As String * 6
stOurRef As String * 10
stYourRef As String * 10
stDate As String * 8
lSAMRef As Long
iNumLines As Integer
bPosted As Boolean
stError As String * 100
End Type
Type TranLine
stDetail As String * 30
stCost As String * 3
stDept As String * 3
lNominal As Long
sAmount As Single
End Type
'*************************************
I'd like to have TranHeader also contain the lines, so I only have to pass
TranHeader to each function. Whats the best way? I was thinking of creating
an array of type TranLine, but I'm not sure what to do. How would I update
the array then?
Thanks
Diarmuid
I have to perform several actions on an Invoice. The Invoice can have 1
or 2 lines. So I created my own types for the header and the lines.
'*************************************
Type TranHeader
stAccCode As String * 6
stOurRef As String * 10
stYourRef As String * 10
stDate As String * 8
lSAMRef As Long
iNumLines As Integer
bPosted As Boolean
stError As String * 100
End Type
Type TranLine
stDetail As String * 30
stCost As String * 3
stDept As String * 3
lNominal As Long
sAmount As Single
End Type
'*************************************
I'd like to have TranHeader also contain the lines, so I only have to pass
TranHeader to each function. Whats the best way? I was thinking of creating
an array of type TranLine, but I'm not sure what to do. How would I update
the array then?
Thanks
Diarmuid