Create a TTable from a DLL


How can I create a TTable from a DLL,
if TTable.Create requiere a TForm as
parameter...

att
lortega
LVL 2
lortegaAsked:
Who is Participating?
 
rwilson032697Connect With a Mentor Commented:
1. Try giving Nil as the parameter to TTable.Create

2. If that doesn't work, try this


           var
             MyForm : TForm;
             MyTable : TTable;
           ...
             MyForm := TForm.Create(Nil);
             MyTable := TTable.Create(MyForm);
             MyTable.Parent := MyForm;

Cheers,

Raymond.
0
 
ronit051397Commented:
write this:     MyTable := TTable.Create(nil);
0
 
lortegaAuthor Commented:
thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.