Hi,
In my app I have a whole bunch of comboboxes.
When the user has put some text in all of these I want to run some validation on the combobox text, and depending on the results, process it.
In each case the same validation procedure could be used.
If I had
ComboBox0
ComboBox1
ComboBox2
ComboBox3
to
ComboBox25
what I would like to do is something like
Is this possible in any way?
Steve (Delphi 2007 & XP)
In my app I have a whole bunch of comboboxes.
When the user has put some text in all of these I want to run some validation on the combobox text, and depending on the results, process it.
In each case the same validation procedure could be used.
If I had
ComboBox0
ComboBox1
ComboBox2
ComboBox3
to
ComboBox25
what I would like to do is something like
Code:
for count = 0 to 25 do
begin
validate(ComboBox[count].text); [COLOR=green]//where validate() is my validation procedure that needs the text of each combobox passing to it[/color]
If result then Strings[count] := ComboxBox[count].Text
end;
Is this possible in any way?
Steve (Delphi 2007 & XP)