Dimbo question and I apologise if this is the 100th time its been asked.
Assuming this help example.
~~~~~~~~~~
procedure TForm1.Table1BeforePost(DataSet: TDataSet);
begin
if DBEdit1.Text = '' then
Abort;
end;
~~~~~~~~~~
If I have 10 such DBEdits on a form, how can I test for all without 10 lines of ifs ?
I know you need to create a loop but what do you index with a loop counter ?
I've tried with DBEdit[loopcount] but I can never get it to work.
I'm still stuck with a "Basic" mindset with some commands and need a few slaps across the face to get this to sink in !
My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...
Assuming this help example.
~~~~~~~~~~
procedure TForm1.Table1BeforePost(DataSet: TDataSet);
begin
if DBEdit1.Text = '' then
Abort;
end;
~~~~~~~~~~
If I have 10 such DBEdits on a form, how can I test for all without 10 lines of ifs ?
I know you need to create a loop but what do you index with a loop counter ?
I've tried with DBEdit[loopcount] but I can never get it to work.
I'm still stuck with a "Basic" mindset with some commands and need a few slaps across the face to get this to sink in !
My Feeblegirl.com Forum boards for mmorpgs, sport, fun, politics...