this program have 3 arrays.. x,y and z.. its multiply array x and array y and will display the answer in array z.. my problem is, how to make the answer displays at z?
[CODE=vb]
Private Sub Command1_Click( )
Dim X(1 To 3, 1 To 3) As Integer
Dim Y(1 To 3, 1 To 3) As Integer
Dim Z(1 To 3, 1 To 3) As Integer
Dim row As Integer
Dim col As Integer
For row = 1 To 3
For col = 1 To 3
Z(row, col) = (X(row, 1) * Y(1, col)) + (X(row, 2) * Y(2, col)) + (X(row, 3) * Y(3, col))
Next
Next
txtZ(0 to 8)=Z(row, col)
End Sub [/CODE]
[CODE=vb]
Private Sub Command1_Click( )
Dim X(1 To 3, 1 To 3) As Integer
Dim Y(1 To 3, 1 To 3) As Integer
Dim Z(1 To 3, 1 To 3) As Integer
Dim row As Integer
Dim col As Integer
For row = 1 To 3
For col = 1 To 3
Z(row, col) = (X(row, 1) * Y(1, col)) + (X(row, 2) * Y(2, col)) + (X(row, 3) * Y(3, col))
Next
Next
txtZ(0 to 8)=Z(row, col)
End Sub [/CODE]
Comment