Dim Label1, Label2, label3,.....,Label10 As Label 'In Globals
Dim Labels() As Label 'In Globals
Activity.LoadLayout("mylayout")
Labels=Array As Label(Label1,Label2,label3,...,Label10)) 'this line must be after you load the layout
Labels(0).Text="Techknight" 'this corresponds to Label1
Labels(6).Text="B4A" 'this corresponds to Label7