HI all
TheConnectionValue (this array is given)
0 11 10 42 0
0 0 0 63 0
0 29 44 0 18
0 0 0 0 0
0 0 0 0 0


TheLinksCounter (this array is given)
0 1 2 1 1

For FromNode = 0 To 4
If TheLinksCounter(FromNode) > 1 Then
For ToNode = 0 To 4
If TheConnectionsValue(FromNode, ToNode) <> 0 Then
TheConnectionsValue(?, FromNode) += TheConnectionsValue(FromNode, ToNode) ' (?) Here is my problem
End If
Next ToNode
End If
Next FromNode

The result should be:
TheConnectionsValue (0,3) = TheConnectionsValue (0,3)’42’ + 29 = 71
TheConnectionsValue (1,3) = TheConnectionsValue (1,3)’63’ + 44 = 107
TheConnectionsValue (0,3) = TheConnectionsValue (0,3)’71’ + 18 = 89

TheConnectionValue:
0 11 10 107 0
0 0 0 89 0
0 29 44 0 18
0 0 0 0 0
0 0 0 0 0

It means that the values of row 3 (for example) will be added to the values of column 4 respectively until all non zero values of row 4 finish.

How can I achieve this? Any ideas?
Thanks