0
私はこのように私の配列を宣言:カウント多次元配列の要素VB.NET
Dim invoice_discountitems(100, 1) As String
は、今私は、配列に値を設定します。
invoice_discountitems(0,0) = "test1"
invoice_discountitems(0,1) = "test2"
invoice_discountitems(1,0) = "test3"
invoice_discountitems(1,1) = "test4"
は、今私は、要素をカウントするためにしようと試み:
MsgBox(invoice_discountitems.GetLength(0) - 1)
しかし、配列のサイズ(100,1)を表示したい(2)要素を表示するには
誰でもこの問題を助けることができますか?前もって感謝します!
すごいので、簡単なの最初の次元の長さを表示しているが、どうもありがとうございました私の問題を解決しました! –