Hola a todos. No sé cómo resolver este error. En https://www.b4x.com/android/forum/threads/problem-with-double-registration-of-the-ddd-class.169672/ Erel ofrece una solución, pero sinceramente, estoy haciendo pruebas y no acierto. En B4XMainPage creo y registro la clase:
En cada una de las páginas que tienen clv distintos:
da ese error 256(DDD).
B4XMainPage:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
....
Public dd As DDD
End Sub
Public Sub Initialize
' B4XPages.GetManager.LogEvents = True
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
dd.Initialize
'The designer script calls the DDD class. A new class instance will be created if needed.
'In this case we want to create it ourselves as we want to access it in our code.
xui.RegisterDesignerClass(dd)
En cada una de las páginas que tienen clv distintos:
Páginas:
Sub Class_Globals
....
Private dd As DDD
....
End Sub
'You can add more parameters here.
Public Sub Initialize As Object
Return Me
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
dd.Initialize
dd = B4XPages.MainPage.dd
'load the layout to Root
da ese error 256(DDD).