Thread: For loop ideas?

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    2
    Rep Power
    0

    For loop ideas?


    Delphi 5, ADO, Sybase ASA

    I have a for loop that is nested in another for loop. Inside of this nested loop are a series of if statements that check whether one of four checkboxes is checked. If any of the four boxes are checked, a command is sent to the database to grant a group certain rights that correspond to the checkboxes. The groupnames are pulled from a TStringList one by one with the use of the inner for loop control variable.

    What I need is a way to pause this inner loop so a user can select the checkboxes then push a button of some sort so the loop can continue to cycle with the next group.

    I just can't figure out the best way to do this... Any suggestions will be appreciated.

    Comments on this post

    • Gran Roguismo agrees
  2. #2
  3. ASP.Net MVP
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Aug 2003
    Location
    WI
    Posts
    4,378
    Rep Power
    1510
    You're thinking procedurally. You want to think events-- process the OnChanged (I think- It may be something else, I use Builder, and that not very often) event and put your if statements in that code.
    Primary Forum: .Net Development
    Holy cow, I'm now an ASP.Net MVP!

    [Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers]

    http://twitter.com/jcoehoorn

IMN logo majestic logo threadwatch logo seochat tools logo