Direct Form creation

If I add a new Direct Form to my project, then use CreateFormDirect when I need it and set the FormContainer property to a div ID then it works ok - but only if the form unit is explicitly added to the project. If I remove the unit (and just reference it in the "uses" section of my main form) then the direct form isn't rendered. I can see the need for having a "standard" form in the project to get a reference to the HTML template, but is there a way to get a direct form to render without it being added to the project structure?

I'd like to be able to use a direct form from non-visual classes without having to also add it to the project. No error is raised so this could become a pain to manage.

I'm using the 2.1 beta.

Thanks, Bob

If there is a DFM file involved, it needs to be added to the project.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.