ALL Visual Basic Code
ALL Visual Basic Code
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 mealsprice As String
Dim drinksprice As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private btnMeals As Button
Private btnDrinks As Button
Private btnTotal As Button
Private btnClear As Button
Private btnExit As Button
Private txtMeals As EditText
Private txtDrinks As EditText
Private txtTottal As EditText
Private rb20 As RadioButton
Private rb10 As RadioButton
Private rb5 As RadioButton
Private rb0 As RadioButton
Private txtdiscount As EditText
Private txtDprice As EditText
End Sub
Sub Activity_Resume
txtMeals.Text = mealsprice
txtDrinks.Text = drinksprice
End Sub
End Sub
Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub
(MEALS)
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private btnMeals As Button
Private btnDrinks As Button
Private btnTotal As Button
Private btnClear As Button
Private btnExit As Button
Private txtMeals As EditText
Private txtDrinks As EditText
Private txtTottal As EditText
Private rb20 As RadioButton
Private rb10 As RadioButton
Private rb5 As RadioButton
Private rb0 As RadioButton
Private txtdiscount As EditText
Private txtDprice As EditText
End Sub
Sub Activity_Resume
txtMeals.Text = mealsprice
txtDrinks.Text = drinksprice
End Sub
End Sub
Sub Button1_Click
xui.MsgboxAsync("Hello world!", "B4X")
End Sub
(DRINKS)
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
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.
End Sub
Sub Activity_Resume
End Sub
End Sub