|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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 Forums: .Net Development, MS-SQL, C Programming VB.Net: It's not your father's Visual Basic. [Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers] |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > For loop ideas? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|