hg080
Mar 2 2004, 09:40 AM
hi all,
well, i have this problem i am creating a simple dataset set on the fly like this :-
objSimpleDS := TSimpleDataSet.Create(nil);
the problem is when i create it with nil the dataset doesn`t appear in the designer of th reports, i have to create it like this in order to view it in the designer:-
objSimpleDS := TSimpleDataSet.Create(form1);
anyone knows how to solve this problem,
i need to create the database with nil.
AlexTZ
Mar 4 2004, 05:42 AM
Dataset must have an Owner (form or datamodule) and a Name in order to work in FR.
hg080
Mar 6 2004, 04:34 AM
i want to create them with nil, because my dataset is created in unit that is called through a dll, which means that my exe is separated from the unit that i use to interact with the database.
so because of that i am creating it with the nil parameter.
if there is no way that the designer recognize the dataset except with creating the dataset with an owner please tell me.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.