J jeeradate Member Licensed User Longtime User Jul 15, 2012 #1 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 Code: Copy Sub Activity_Create(FirstTime As Boolean) 32---> Activity.LoadLayout(PriceEntry) lblPrice.Text = "" End Sub Would you please be kind and advise how to solve this problem? :sign0104: Last edited: Jul 15, 2012
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 Code: Copy Sub Activity_Create(FirstTime As Boolean) 32---> Activity.LoadLayout(PriceEntry) lblPrice.Text = "" End Sub Would you please be kind and advise how to solve this problem? :sign0104:
NJDude Expert Licensed User Longtime User Jul 15, 2012 #2 The layout name should be in quotes, like this: Code: Copy Activity.LoadLayout("PriceEntry") Upvote 0
J jeeradate Member Licensed User Longtime User Jul 15, 2012 #3 NJDude said: The layout name should be in quotes, like this: Code: Copy Activity.LoadLayout("PriceEntry") Click to expand... Thank you for your kind advice. It is OK with your advice. Last edited: Jul 15, 2012 Upvote 0
NJDude said: The layout name should be in quotes, like this: Code: Copy Activity.LoadLayout("PriceEntry") Click to expand... Thank you for your kind advice. It is OK with your advice.