March 10th, 2004, 04:19 PM
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
March 18th, 2004, 04:17 PM
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.