I create 3 activities in my project and "PriceEntry" is one of them.
I create the layout in Designer for "PriceEntry" Activity.
When I start to run the project and system ask for "Label" but I don't tell the system the Layout label. And it show the below error.
Compiling code. Error
Error parsing program.
Error description: Undeclared variable 'priceentry' is used before it was assigned any value.
Occurred on line: 32
Activity.LoadLayout(PriceEntry)
The code that cause error
Would you please be kind and advise how to solve this problem?
:sign0104:
I create the layout in Designer for "PriceEntry" Activity.
When I start to run the project and system ask for "Label" but I don't tell the system the Layout label. And it show the below error.
Compiling code. Error
Error parsing program.
Error description: Undeclared variable 'priceentry' is used before it was assigned any value.
Occurred on line: 32
Activity.LoadLayout(PriceEntry)
The code that cause error
B4X:
Sub Activity_Create(FirstTime As Boolean)
32---> Activity.LoadLayout(PriceEntry)
lblPrice.Text = ""
End Sub
:sign0104:
Last edited: