Hey,
I am running a large loop and so far I cut down a lot of the processing by optimizing little things that made a huge difference.
But I need to know some more, which between the two will take less time/memory:
orVB Code:
Dim perc As Long For x = 0 To 50000 perc = Round((x / 50000) * 100) fraProgress.Caption = "Progress - " & perc & "%" Next
VB Code:
For x = 0 To 50000 fraProgress.Caption = "Progress - " & Round((x / 50000) * 100) & "%" Next
I am thinking the first one would be the best, the second VB will create a Variant for to calculate, right ?
Thanks




Reply With Quote