josauro@casasoft.net.br Posted October 3, 2025 Posted October 3, 2025 Hi Same time when exist a TUniPageControl.OnChangeValue, this event is trigged before form create event is finished !!! In this cases if you access other component of form in OnChaveValue, could be that it´s not created, this raise a error because that component is not created yet. I think this event is trigged whe pagecontrol is created, but could have others component to be create yet. Some advise about this ? Thanks. Quote
Sherzod Posted October 3, 2025 Posted October 3, 2025 Hello, 58 minutes ago, josauro@casasoft.net.br said: TUniPageControl.OnChangeValue Do you mean the OnChange event instead of OnChangeValue? Quote
josauro@casasoft.net.br Posted October 3, 2025 Author Posted October 3, 2025 Error occurs only on event OnChangeValue if I use the same code in OnChange it´s work, but in same case OnChangeValue is trigged if a set ActivePage := Tabxxx, onChangeValue is trigged not OnChange Ex: If I use this code this event is trigged before btnDependencia is created, occurs error in btnDependencia is Nil yet. But this event is trigged when form is creating... But if I use this event, its work perfect, but if I set ActivePage := Tabxxx only OnChangeValue is trigged because this I try to use OnChaveValue Thanks. Quote
Sherzod Posted October 4, 2025 Posted October 4, 2025 @josauro@casasoft.net.br Could you create a simple test case to reproduce your situation? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.