Board index » delphi » DataModule not working

DataModule not working

I have developed a problem using my datamodule.

A data is only shown if I set the datamodule TTable to Active=True
manually before building. dm.ttable.active:=True fools tooltips into
saying it is active but no data is shown.

Cut and pasting from the datamodule onto the actual form works fine. I
cannot seem to set any other properties either (such as Filter or
Filtered, though tooltips shows them as set as desired, the filters
only work if I move the table to the actual form concerned).

My app is built around the datamodule so this is a major problem

What can cause such access problems?
Pat Bell

Using Virtual Access
http://www.vamail.com

 

Re:DataModule not working


What do you mean by, "dm.ttable.active:=True fools tooltips into
saying it is active but no data is shown."

--
Bill

(TeamB cannot answer questions received via email.)
(To contact me for any other reason remove nospam from my address)

Re:DataModule not working


Running in debug, I can see the setting of dm.table.active to true
change from Fals to True with the tooltip but the message Lookup table
not active still appears. If I manually set it to active (before
running) tooltips correctly shows it to be active before the
assigning line, no Lookup table is not active message but subsequently
assigning lines (Filter:=... etc) are ignored.

Pat Bell

Using Virtual Access
http://www.vamail.com

Re:DataModule not working


Check the creation order to be sure that the data module is being created
before the form.

--
Bill

(TeamB cannot answer questions received via email.)
(To contact me for any other reason remove nospam from my address)

Re:DataModule not working


I was actually creating it in the form itself so that the main
datamodule didn't 'get in the way' of an initial test datamodule which
I create, test tables, then destroy/free. This technique works in an
extant app I have but seems to throw problems used in my current app.

Pat Bell

Using Virtual Access
http://www.vamail.com

Other Threads