Progress bar, and Visual Basic6

  • From: Darko Milošević <darko.pogacic@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 4 May 2008 14:48:18 +0200

Hello.
I have troubles to activate the progress bar control in VB6.
When I place the control of the form, I would like progress when my program 
doing something, such as conversion from Cyrillic to Latin characters.
I have I loop, shown below.
For I = 1 To Len(text1.text)
Character = AscW (Mid$(text1.text, I, 1))
And now is problem.
Which value I need to give as Value of Progress bar value property, if I would 
like to have a progress shown during the conversion process, until loop 
finishes.
I have control named Progress, and cod below is:
Progress.Value = I
Progress.Visible = True
If Character = 1072 Then
'1072 is Ascii symbol for Cyrillic letter A
text2.text = text2.text & "a"
End If
Next I
If I put I as property value for the Progress control, My program breaks, and 
needs debuggingk, because I is unexpected property value, and value needs to be 
as single.
I hope that anyone understood me, and I am expecting your help.
The best egards from Darko.

Other related posts: