I have this VB6 Datatype that I need to convert to VB.NET I have no clue how to handle the arrays... Little help??
Type BVInventoryRecord
InvWhse As String * 6
InvPartCode As String * 34
InvDescription As String * 80
InvProductCode As String * 10
InvLocation As String * 20
InvOnHoldFlag As String * 1
InvCurrentCost As String * 17 'Mask ±##########.#####
InvAverageCost As String * 17 'Mask ±##########.#####
InvSellingPrice(1 To 20) As String * 17 'Mask ±##########.#####
InvPromoStartDate As String * 8
InvPromoEndDate As String * 8
InvPromoFlag As String * 1
InvPromoMandatoryFlag As String * 1
InvPromoSellingPrice As String * 17 'Mask ±##########.#####
InvQuantityBreak(1 To 9) As BVQuantityBreaks
InvTaxFlag(1 To 4) As String * 1
InvMeasure As String * 10
InvCurrentPONo As String * 10
InvPODueDate As String * 8
InvMinBuyQty As String * 11
InvDiscountableFlag As String * 1
InvSerializedFlag As String * 1
InvSalesAccount As String * 4
InvOnHandQty As String * 17 'Mask ±##########.#####
InvReorderPointQty As String * 17 'Mask ±##########.#####
InvCommittedQty As String * 17 'Mask ±##########.#####
InvBackOrderQty As String * 17 'Mask ±##########.#####
InvOnOrderQty As String * 17 'Mask ±##########.#####
InvAltPartWarehouse As String * 6
InvAltPartCode As String * 34
InvMisc1 As String * 30
InvMisc2 As String * 17 'Mask ±##########.#####
InvSalesByPeriod As BVSalesByPeriod
InvType As String * 1
InvImageFileName As String * 261
InvWeight As String * 13 'Mask ±######.#####
InvECommerceFlag As String * 1
InvUPCCode As String * 40
InvPreferredVendor As String * 20
InvXtdDesc As String * 5000
InvUomDesc As String * 80
InvAllowBackOrders As String * 1
InvAllowReturns As String * 1
End Type
So far I have:
Structure BVInventoryRecord
<VBFixedString(6), System.Runtime.InteropServ
ices.Marsh
alAs(Syste
m.Runtime.
InteropSer
vices.Unma
nagedType.
ByValArray
, SizeConst:=6)> Private sInvWhse As Char()
<VBFixedString(34), System.Runtime.InteropServ
ices.Marsh
alAs(Syste
m.Runtime.
InteropSer
vices.Unma
nagedType.
ByValArray
, SizeConst:=34)> Private sInvPartCode As Char()
<VBFixedString(80), System.Runtime.InteropServ
ices.Marsh
alAs(Syste
m.Runtime.
InteropSer
vices.Unma
nagedType.
ByValArray
, SizeConst:=80)> Private sInvDescription As Char()
<VBFixedString(10), System.Runtime.InteropServ
ices.Marsh
alAs(Syste
m.Runtime.
InteropSer
vices.Unma
nagedType.
ByValArray
, SizeConst:=10)> Private sInvProductCode As Char()
<VBFixedString(20), System.Runtime.InteropServ
ices.Marsh
alAs(Syste
m.Runtime.
InteropSer
vices.Unma
nagedType.
ByValArray
, SizeConst:=20)> Private sInvLocation As Char()
<VBFixedString(1), System.Runtime.InteropServ
ices.Marsh
alAs(Syste
m.Runtime.
InteropSer
vices.Unma
nagedType.
ByValArray
, SizeConst:=1)> Private sInvOnHoldFlag As Char()
<VBFixedString(17), System.Runtime.InteropServ
ices.Marsh
alAs(Syste
m.Runtime.
InteropSer
vices.Unma
nagedType.
ByValArray
, SizeConst:=17)> Private sInvCurrentCost As Char()
<VBFixedString(17), System.Runtime.InteropServ
ices.Marsh
alAs(Syste
m.Runtime.
InteropSer
vices.Unma
nagedType.
ByValArray
, SizeConst:=17)> Private sInvAverageCost As Char()
But then I hit the arrays and Im not sure how to represent them
Start Free Trial