WHICH Error do you get? It does not help us to help you if you hide the error
Upload a small project which shows the problem.
says "Undeclared Variable 'label1' is used before it was assigned any value
Label1 is not a variable in my understanding. As you can see on the screen it is a CONTROL not a variable.
Unfortunately I am new to B4A and am used to programming in VB6 where you never have to define a label as a variable to use it. (Its a control - not a variable)
Suggestion was to define Label1 in Globals. I cant see the declaration of Button1 in globals. Is a button a different type of control to a label?
Just guessing...............is Label1 declared in Globals?
I have now defined the Label1 in Globals as suggested DIM LABEL1 AS LABEL Red Underline is removed from lines 40 and 42
Where was Button1 defined ?
Is there a list of controls which are controls and those that are not self defining controls ?
This is totally foreign logic to be declaring a label as a variable - some of my forms may have 100 labels - does that mean I need to define each and every label in globals just to use a label ?
Thanks for your patience