LAMAN WEB ASAS SAINS KOMPUTER
Thursday, 9 April 2020
Hello World
Opening LiveCode
Creating a new mainstack
Select New Stack - Default Size from the File menu. Every project you create in LiveCode is a stack.
New stack
This is a new stack, it is a blank canvas ready for you to start creating your app.
Creating a button
Drag a button from the Tools Palette onto the stack.
Opening the Code Editor
Click the Code button in the MenuBar to open the Code Editor for the button
Adding code to the button
Adding code to the button (2)
Add the code
answer "Hello World!"
to the button.
The answer command
The answer command displays a dialog box with a message to the user.
Applying the new code
Click the Apply(1) button. The indicator(2) will turn green to show there are no errors.
Run mode
Switch to Run mode to interact with the app.
Testing the button
Click the button.
The dialog box
After clicking the button you will see the message
Hello World!
Click OK to dismiss the dialog.
Newer Post
Older Post
Home