B4J Question GetView

geps

Member
Licensed User
Longtime User
Hey,
I'm a beginner

this code example works with b4a
not with b4J
can someone help?

1.
Private view as Label
For i = 0 To Activity.NumberOfViews - 1
view=Activity.GetView(i)
view.Enabled=false
Next

2.
Private lbl as Int
Private view as Label
lbl=2
view=Activity.GetView(lbl-1)
 

Star-Dust

Expert
Licensed User
Longtime User
In B4J the views are called a node.
Use Pane.GetNode (0) and Pane.NumberOfNodes
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…