Hey All,
Sorry if there's already a post that exist, but i've been searching and couldn't find any post referring to Array of Types.
I'am trying to reset my array to the number of record found in the table for a specefic order. But an Error shows up saying :
arrProducts(intNbProdcut)
Error Description :
Syntax error (missing parameter)
I know that my error is the syntax but I do not know the syntax to correct this error,
Is there anyone who could help me out ?
Sorry if there's already a post that exist, but i've been searching and couldn't find any post referring to Array of Types.
B4X:
Dim Type (ProductCode, PrDescription, OrgQtyBO, OrgQtyShipped, OrgQtyOrdered, Sequence, PrHasComponents, RefPrSequence, PrIsComponent, IsNewOrder) arrProducts(0)
Query = "SELECT COUNT(*) AS PrCount" & CRLF & _
"FROM [dbo].[OE_Order_Details]" & CRLF & _
"WHERE [OrderNo] = " & OrderNo
Conn.ExecuteQuery(Query)
Conn.Advance
intNbProduct = conn.ReadField("PrCount")
arrProducts(intNbProduct)
I'am trying to reset my array to the number of record found in the table for a specefic order. But an Error shows up saying :
arrProducts(intNbProdcut)
Error Description :
Syntax error (missing parameter)
I know that my error is the syntax but I do not know the syntax to correct this error,
Is there anyone who could help me out ?