Hi, see you again on my blog. I hope you enjoy it. On this occassion I want to share about Gambas programming. I've posted how to install Gambas 3 on Pear OS 8 and now I want to learn how to coding with Gambas 3. OK I want to start to create a Hello World. My program will display "Hello World" text when the button is clicked.
First, Open Gambas and go to Project | New Project.
Next, provide the project title and project name.
Press OK and now your project is ready. We can start designing and coding. On the Gambas 3 main window, double click FMain on the left to see the design form where we put button, etc.
Click Button from the Form tool and now draw the button on the Main Form by dragging your mouse. See my example:
Double click Button1 to see and start coding
Public Sub Button1_Click()
message("Hellow World")
End
Now, Compile the project. Use F7 or go to Project | Compile. Now run the program and Viola
Comments :
0 comments to “Gambas Exercise - Hello World”
Post a Comment