B4J Question [B4X] Creating objects of a variable Class at runtime

Alessandro71

Well-Known Member
Licensed User
Longtime User
with reference to this thread:
i see there's and AddHandler sub that, as second parameter, has an object Class name.
B4X:
AddHandler("/hello", "HelloPage", False)
the Server object, later will create an object much like
B4X:
Dim runtimeobject as HelloPage
where the Class of runtimeobject will be the one specified as parameter of AddHandler.

i'm developing a cross-platform app (Android/iOS) that would benefit from using the same method: defining a variable number of objects at runtime from a Class not statically defined at compile time.

if there a way to get this working on B4A and B4i?
 
Top