John Yazou
New Member
- Joined
- Mar 17, 2002
- Messages
- 49
Hi,
I have a file that contains
Line1
Line2
Line3
Am using something like
while not eof(filenumber)
if Condition1 = True then
copied = copied + 1
do something....
end if
total = total + 1
loop
Which is fine... but now i want to add a progress bar.. but I will need to set the ProgressBar1.Max = total, so I will need to know the # of lines contained in the file beforehand. How to do this??
want it to be something like
ProgressBar1.Max = # of lines
ProgressBar1.Min = 0
while not eof(filenumber)
if Condition1 = True then
copied = copied + 1
do something...
end if
ProgressBar1.Value = total + 1
loop
I have a file that contains
Line1
Line2
Line3
Am using something like
while not eof(filenumber)
if Condition1 = True then
copied = copied + 1
do something....
end if
total = total + 1
loop
Which is fine... but now i want to add a progress bar.. but I will need to set the ProgressBar1.Max = total, so I will need to know the # of lines contained in the file beforehand. How to do this??
want it to be something like
ProgressBar1.Max = # of lines
ProgressBar1.Min = 0
while not eof(filenumber)
if Condition1 = True then
copied = copied + 1
do something...
end if
ProgressBar1.Value = total + 1
loop