Hi !
Please tell me, is this the correct code in B4A ?
The code works, but I don't understand why ...
Thanks !
Please tell me, is this the correct code in B4A ?
The code works, but I don't understand why ...
B4X:
Sub Class_Globals
Private MyLabel() As String
Private MyEntry() As B4XFloatTextField
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
MyLabel = Array As String ("Prompt1","Prompt2","Prompt3")
Log(MyEntry.Length) ' = 0
Private MyEntry(MyLabel.Length) As B4XFloatTextField
Log(MyEntry.Length) ' = 3
End Sub
Private Sub B4XPage_Appear
MyEntry(0).Text = "One" 'OK ! ???
MyEntry(1).Text = "Two" 'OK ! ???
MyEntry(2).Text = "Three" 'OK ! ???
End Sub
Thanks !