Welcome! Log In Create A New Profile

Advanced

Problem 2.2 - economic programming

Posted by tuxstar 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Problem 2.2 - economic programming
February 17, 2007 09:18AM
Hi all

I have successfully completed problem 2.2 in the Delphi book. My questions arises around the coding of the "Clear all" button we are requested to put in the form.

I have used the following code which - to all intense purposes - delivers what the questions asks but i can t help thinking that there must be a better (economical) way of reusing properties or code already set up. Any ideas?

procedure TfrmTexDemo.btnClearClick(Sender: TObject);
begin
lblName.Caption := 'Name';
lblDpt.Caption := 'Department';
lblBirth.Caption := 'Birth Date';
edtText.Clear;
edtText.Setfocus;
end;

end.
Re: Problem 2.2 - economic programming
March 05, 2007 09:23PM
Solutions available at the following url :

http://www.oxford.co.za/cws/sciences/delphi/625184.htm

Regards
Derek
Re: Problem 2.2 - economic programming
April 04, 2007 06:20AM
You can be using a bitmap button - this will eliminate the coding and do it automatically. But this was not the instructions
Sorry, only registered users may post in this forum.

Click here to login