Results 1 to 13 of 13

Thread: [RESOLVED]How to make in this loop - please help me

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    [RESOLVED]How to make in this loop - please help me

    I'm not the best in explaining things. O.K. I will try
    So, when I click the commandbutton COUNT, it my application it does one operation of calculation. Visible the progress bar on a screen shots it is registering progress executed calculations. Visible number shows how much operation was executed.
    If I will click the commanbutton UNDO COUNT then will be withdrawal 1 operation, then recently segment should stopping shine.

    And now, essence of matter

    I make such code and I used statement Case, where I used variable as counter.

    For button COUNT

    VB Code:
    1. Dim Lic As Integer
    2. Select Case Lic
    3.  
    4. Case 0
    5.  
    6.     With lbl1
    7.        .caption = 1
    8.        .Backcolor = RGB ( 44, 164, 214)
    9.        .Forecolor = RGB (255, 255, 255)
    10.    End With
    11.        Lic = 1
    12. Case 1
    13.  
    14.     With lbl2
    15.        .caption = 2
    16.        .Backcolor = RGB ( 44, 164, 214)
    17.        .Forecolor = RGB (255, 255, 255)
    18.    End With
    19.        Lic = 2
    20. …….etc   until to lbl10.caption
    (Truth, that this looks fatally)

    Of course, for button UNDO COUNT the statement makes in reverse order

    I want this to make from use in some loop ( better For...Next) and the array of objects (Label)
    Just, I don't know how to make this.

    P.S. Array of objects this is simply, I know how to make.

    thx, in advance for every help
    Last edited by Tamgovb; Mar 10th, 2006 at 05:59 AM.
    I know, I know, my English is bad, sorry .....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width