HI guys,
So I have a calculator program, and everytime I try to test it on the emulator, it gives me an error with the following code
It highlights the price = PriceLabel.Text and says I have to initialize the label. What should I do to correct this?
So I have a calculator program, and everytime I try to test it on the emulator, it gives me an error with the following code
B4X:
Timer1_Tick
Dim price,pounds,results As Float
price = PriceLabel.Text
If PriceButtonDown Then
If PriceButtonPressed ="Increase" Then
price = price + .05
Else
If price>0 Then
price = price - .05
End If
End If
PriceLabel.Text = NumberFormat(price,0,2)
End If
It highlights the price = PriceLabel.Text and says I have to initialize the label. What should I do to correct this?