B4J Question How can the label and textfield members automatically generated in B4X be declared as public instead of private?

daiweisc

Member
How can the label and textfield members automatically generated in B4X be declared as public instead of private?
微信图片_20211114124425.png
 

udg

Expert
Licensed User
Longtime User
Hi, I don't know if there's a built-in way to do that, but you could use Edit-Find/Replace in the IDE to substitute any Private label with its Public counterpart (eventually limiting the replacement to a specific section of your declarations).

BTW, I find it safer to have a default of Private. In general, limiting the scope of a variable to the "section" of code where it's really needed it's better, IMHO.
 
Upvote 0
Top