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:

VB Code:
  1. Dim perc As Long
  2.  
  3. For x = 0 To 50000
  4.   perc = Round((x / 50000) * 100)
  5.   fraProgress.Caption = "Progress - " & perc & "%"
  6. Next
or

VB Code:
  1. For x = 0 To 50000
  2.   fraProgress.Caption = "Progress - " & Round((x / 50000) * 100) & "%"
  3. Next

I am thinking the first one would be the best, the second VB will create a Variant for to calculate, right ?

Thanks