Hi Mike,
>Is it possible to dynamically create controls in a form based on XML?
Yes. What you would do is:
- Load the XML definition either in the DOM parser, the CursorAdapter or a plain cursor. Which options are available to you depends on the format of the XML definition.
- Loop through all items in the defintiion.
- Create objects using the NewObject() method
- Apply all properties as specified in the XML file.
Most likely you want to create your own set of classes for this purposes, because you can't add code to any method of the controls this way. Your only options are setting properties and using BINDEVENT().
--
Christof