S sultan87 Active Member Licensed User Longtime User Dec 4, 2011 #1 good evening how to use GetControls Sub pays_FocusChanged(HasFocus As Boolean) Dim names(0) As String names() = GetControls("Activity") For i = 0 To ArrayLen(names()) - 1 Control(names(i)).Enabled = False Next end sub Best regards
good evening how to use GetControls Sub pays_FocusChanged(HasFocus As Boolean) Dim names(0) As String names() = GetControls("Activity") For i = 0 To ArrayLen(names()) - 1 Control(names(i)).Enabled = False Next end sub Best regards
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2011 #2 The above code is from Basic4ppc, not Basic4android. You should use the search box in the top right corner. It will only return Basic4android results. Here is the correct code: B4X: For i = 0 To Activity.NumberOfViews - 1 Dim v As View v = Activity.GetView(i) v.Enabled = False Next Upvote 0
The above code is from Basic4ppc, not Basic4android. You should use the search box in the top right corner. It will only return Basic4android results. Here is the correct code: B4X: For i = 0 To Activity.NumberOfViews - 1 Dim v As View v = Activity.GetView(i) v.Enabled = False Next
S sultan87 Active Member Licensed User Longtime User Dec 5, 2011 #3 hello Ok May I wish to know the name of the views Best regards Upvote 0
klaus Expert Licensed User Longtime User Dec 5, 2011 #4 Unfortunately the names are not available. You need to use the views Tag property. You can get the views type with the GetType keyword. Best regards. Upvote 0
Unfortunately the names are not available. You need to use the views Tag property. You can get the views type with the GetType keyword. Best regards.