iOS Question Error when loading page

dieterp

Active Member
Licensed User
Longtime User
When I try opening a page I get the error 'Expected: UITextField, object type: UILabel'. This page used to open without any issues until now. I have tried using a different .bil file as well as changing the code module name but the error persists. Here is the code:

B4X:
pg.Initialize("pg")
pg.Title = "Players"
pg.RootPanel.LoadLayout("PlayersNew")

The error happens on the last line. Anyone have any idea what the issue could be?
 

dieterp

Active Member
Licensed User
Longtime User
Hi Klaus

You are correct. I had accidently set a label field as a text field in the Global variables. Everything is sorted now. Thanks for the help!
 
Upvote 0
Top