Form based Hello World

An Hello World program is great to learn the basics of a language but anyone knows that a good looking program using forms is what sells. PPL offers an easy to use visual form builder to simplify this task. Lets design a form based Hello World program that will do a little bit than the usual message on screen.

Lets first start by creating a new form. Click the form builder icon in the toolbar.

Tutorial6.png

Save the form to C:\Program Files\PPL\Tutorials\Hello World Form.frm. Click the save button.

Tutorial9.png

Now design the following form.

Tutorial8.png

Add a Label component. Change the caption property with "Click the button".

Tutorial7.png

Add an EDIT component on the form. that is the text box, and that name should be replaced with "EDIT103".

Add a new BUTTON component and change the caption to "Click Me!". Now double-click on the button to edit its onClick event code. Type the following line:

Edit_Set(EDIT103$, "Hello World!");

The complete code should look like this:

Tutorial11.png

Now select Run -> Run. Here the result form after pushing the Click Me! button.

Tutorial10.png