Re: Loop control



On Sat, 02 Jul 2005 20:07:51 +0200, mm <mm@xxxxxx> wrote:

>I have already fillin a tlist and a combobox with about 500 different
>lines

Can you come up with an alternative design for the user interface?
Repeatedly dropping down a combobox and selecting from 500 options is
likely to get very boring very quickly.

> I have a loop
> Inside that loop i display in a tedit a value and then I want to
>choose a line from the tlist and one from the combobox.
>I do not known how to stop the loop and that he wait on selection of
>the tlist and combobox.
>And if I have make the selections i want to push a button and continue
>with the loop

Let the user drive the application rather than have the application
drive the user.
Forget the loop and simply display the first prompt (in the TEdit) and
then let the user make selections and press the button to continue.
When they press the button, deal with their selection, increment your
progress counter (what would have been your loop index) and display in
the TEdit the prompt for the next input. Continue till done.

--
Duncan

.