Professional Documents
Culture Documents
Things to do.
1. On Main module click Project →Add New Module →Activity Module. Enter “Pizza” as
module name.
2. Add another activity module and name it as “Drinks”.
3. On Visual Designer, add new layout by clicking File →New and save it as “laypizza”.
4. Add another layout and name it as “laydrinks”.
JBQ@2021
College of Computing Studies
5. Click File on Visual Designer and you will see all the layouts. Click “Layout” and add all
the controls used in designer below and save the layout.
6. Click File and open the laypizza layout. Add all controls used in designer below and save
the layout.
JBQ@2021
College of Computing Studies
7. Click File and open the laydrinks layout. Add all controls used in designer below and
save the layout.
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private xui As XUI
Dim priceforpizza As String
Dim pricefordrinks As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private txtpricepizza As EditText
Private txtpricedrinks As EditText
JBQ@2021
College of Computing Studies
Sub Activity_Resume
txtpricepizza.Text = priceforpizza
txtpricedrinks.Text = pricefordrinks
End Sub
End Sub
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
JBQ@2021
College of Computing Studies
End Sub
Sub Activity_Resume
End Sub
End Sub
chkham.Checked = False
chkhaw.Checked = False
chkpep.Checked = False
txtprice.Text = 0
End Sub
JBQ@2021
College of Computing Studies
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
JBQ@2021
College of Computing Studies
End Sub
Sub Activity_Resume
End Sub
End Sub
JBQ@2021
College of Computing Studies
Else
txtprice2.Text = txtprice2.Text - 30
End If
End Sub
Prepared by:
Joel B. Quiambao
Instructor 1
JBQ@2021