Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
For i = 0 To slidePan.Length - 1
slidePan(i).Initialize("slidePan")
Activity.AddView(slidePan(i),0,0,100%x, 100%y)
slidePan(i).SendToBack
Next
slidePan(0).LoadLayout("flowsandtemplayout") '<------------- error here
End Sub
[/COLOR]