|
-
Aug 19th, 2012, 07:14 PM
#1
Thread Starter
New Member
using expressions outside the loop
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:
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
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.
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|