Hi there, here is my problem:
I need expressions for time(n) so that i can calculate time(n) in a for loop(for k=1 to 100000). i don't know the expressions, so the code has to do it for me:
by this, i get 26 expressions for time(n) (from time(1) to time(26)). the thing is, i don't want to do this in the for loop of k=1 to 100000, which is awaste of time, i want to do it outside the loop. but i want to use the result- the expression for time(n)- in the for loop of k=1 to 100000.Code:For i As Integer = 1 To 26 For j As Integer = 0 To i - 1 If RowsCols(i)(4) - RowsCols(j)(4) = RowsCols(j)(2) And Then time(i) = time(j) + t(i) Exit For End If Next Next
is it possible?? if yes, how to use simply the expression in the for loop? i have no idea what kind of problem this is, so couldn't find any result by google search. Thanks in advance!


Reply With Quote
