Hello,
For the life of me I cannot find my code from over a decade ago(VB). All im trying to do is right a simple math code.
One Label -- For Score
Text Box -- Enter Points you get
Button -- Submits the points goes to label and clears textbox.
Repeat until a certain number is reached.
Heres some of the stuff i have tried (its laughable big brain fart happening here)
For the life of me I cannot find my code from over a decade ago(VB). All im trying to do is right a simple math code.
One Label -- For Score
Text Box -- Enter Points you get
Button -- Submits the points goes to label and clears textbox.
Repeat until a certain number is reached.
Heres some of the stuff i have tried (its laughable big brain fart happening here)
B4X:
Private lblscoreone As Label
Private txtscoreone As B4XFloatTextField
One Attempt was
Private btnaddone As Button
Private n As String
Private x As String
One Attempt was(Gave me nothing good
Sub btnaddone_click
n = txtscoreone.text
x = lblscoreone.text
lblscoreone.Text = (x+n)
End Sub
Another Attempt
Sub btnaddone_click
lblscoreone.text = txtscoreone.text (This gives me same number)
lblscoreone.text = txtscoreone.text + txtscoreone.text (obviously doubles crazynes)
End Sub
another attempt
Sub btnaddone_click
lblscoreone.text = x
n = txtscoreone.text
lblscoreone.Text = (x+n)
n = "" (Clear the N so it can count and not double if you pick a one or two)
End Sub