If I create a panel with views to be made visble or not like a Dialog, using a sub...
I cannot refer to the EditText outside the sub as pItems.eName.Text
1. Is this still part of the rule that variables cannot be referred to outside their sub and I must again use Globals for all on the panel?
2. Please say Under what conditions I would use pItems.eName.Text because if they are Global I don't need the prefix?
B4X:
Sub Items
Dim pItems as Panel
Dim eName,iQty As EditText
...
End Sub
1. Is this still part of the rule that variables cannot be referred to outside their sub and I must again use Globals for all on the panel?
2. Please say Under what conditions I would use pItems.eName.Text because if they are Global I don't need the prefix?