D dieterp Active Member Licensed User Longtime User Sep 22, 2017 #1 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: Code: Copy 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?
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: Code: Copy 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?
klaus Expert Licensed User Longtime User Sep 22, 2017 #2 You need to give more informations. It seems that you have a mismatch between a view declaration and the type in the layout. One TextField and another Label !? Can you post a small project showing the problem. Upvote 0
You need to give more informations. It seems that you have a mismatch between a view declaration and the type in the layout. One TextField and another Label !? Can you post a small project showing the problem.
D dieterp Active Member Licensed User Longtime User Sep 22, 2017 #3 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
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!