Delphi Programming San Jose CA

This article will explain to you how to get started with Delphi programming in a step-by-step tutorial. In this article, we will build a simple 'Hello world' application which changes a text label when button is clicked..

Local Companies

cccp
408-265-2902
2585 Westgate Ave
San Jose, CA
Accoladde
+91 9962299053
2033 Gateway place
San Jose, AK
Accoladde
+1 408 651 7050
2033 Gateway Place
San Jose, CA
Concierge for Business
408 993-1368
472 Clifton Avenue
San Jose, CA
VeriPIc
1-888-837-4742
2360 Walsh Ave
Santa Clara, CA
Zoniac, Inc.
619.448.7284
1649 S. Main Street, Ste. 105
Milpitas, CA
InsidersReferral.com, Inc.
(408) 338-6542
386 America Ave
Sunnyvale, CA
TrueSoft, Inc.
408-329-3011
440 N. Wolfe Rd.
Sunnyvale, CA
Accept Software Corporation
1.866.423.8376
42808 Christy Street, Suite 216
Fremont, CA
smartData Enterprises
646-367-8215
706 Colorado Avenue,
Palo Alto, CA 94303, CA

Provided by: 

This article will explain to you how to get started with Delphi programming in a step-by-step tutorial. In this article, we will build a simple 'Hello world' application which changes a text label when button is clicked. You will learn basic steps to design application user interface and how to define event handler that will trigger actions.

STEP 1:

When you create a VCL form application project, Delphi will create one empty form named Form1. This is your main application window. From the Object Inspector tool, you can find it on the bottom side of Delphi Integrated Development Environment (IDE). Click and select Caption properties of Form1 and change it to any text you want, for example, Hello Delphi programming.

Find Tool Palette on bottom right of Delphi IDE. Select TButton control and drag-drop it to Form1. Your form will be populated with a button. Select button control and drag it to arrange its position on the form. On Object Inspector, change Caption property to any text, for example Click Me.

From Tool Palette, drag TLabel and drop it on the form. From Object Inspector, change its Caption property to any text, for example Hello world. As you type, you can see that Label control will change its text.

STEP 2:

Select button control and from Object Inspector, activate Events tab. It is located after Properties tab.

Now look for OnClick event. Double click on it or you can double click on button control on the form. Delphi will generate code block for you which you can fill with your own code. Type your first code between Begin and End block and make it look exactly like the following code.

procedure TForm1.Button1Click(Sender:TObject);

begin

Label1.Caption:='Hello Delphi Programming';

end;

 

Save your project. Wait until the saving process is complete.

STEP 3:

Go to Project -> Build HelloWorld. Wait until the building process is complete. If you type it correctly, Delphi should generate no error messages. If you get any error messages, check for syntax error. Delphi displays line information where the error occurred, so it should be easy to spot it if you got any errors.

If you built with success, go to Run -> Run, or you can press F9. You project should come to life. Click button and the text should change to Hello Delphi Programming.

Click here to visit HowToDoThings.com

Featured Local Company

cccp

408-265-2902
2585 Westgate Ave
San Jose, CA
http://cccptech.com

Related Local Events
MACWORLD 2010
Dates: 1/4/2010 - 1/8/2010
Location: Moscone Convention Center
San Francisco, CA
View Details

Informex USA
Dates: 2/16/2010 - 2/19/2010
Location: Moscone Convention Center, San Francisco
San Francisco, CA
View Details

Advanced Lithography
Dates: 2/21/2010 - 2/26/2010
Location: San Jose Convention Center
San Jose, CA
View Details

Contraceptive Technology Conference : San Francisco
Dates: 3/24/2010 - 3/27/2010
Location: Hyatt Regency Hotel
San Francisco, CA
View Details

Web 2.0 Summit
Dates: 10/20/2009 - 10/22/2009
Location: Westin San Francisco Market Street
San Francisco, CA
View Details