WebSDK making new HTMLwrapper in runtime

I have an arbitrary number of posts retreived from a database in:

Dim d() as Dictionary

This is all done in a HTMLwrapper named LIJST. For each post in d() i want to create a new HTMLwrapper and fit this in LIJST. Like this…
For i As Integer = 0 To d.Ubound
Dim h As new HTMLpost( d(i) )
// here h is to be embedded in LIJST
Next i

I have an arbitrary number of posts retreived from a database in:

Dim d() as Dictionary

This is all done in a HTMLwrapper named LIJST. For each post in d() i want to create a new HTMLwrapper and fit this in LIJST. Like this…

For i As Integer = 0 To d.Ubound Dim h As new HTMLpost( d(i) ) // here h is to be embedded in LIJST Next i

How do i embed one wrapper into the other?

You can’t create these classes at runtime. Add a method to your WebSDK class which inserts html into the existing one.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.