Re: Problems with Delphi 7

saigonij <[email protected]>
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <[email protected]>
you also want to make sure that the datamodule is before the form in teh list of auto-created forms, as this is the order of creation too.
 
you need to make sure the datamodule is created before the form.

Bob Swart <[email protected]> wrote:
Hi ssspecter,

> The only thing I did was:
> - Create a TDataModule

Make sure the data module is in the list of auto-created forms. If it
isn't, then your form cannot use the data module (or anything on it)...

> - put 1 TADOConnect and 1 TADOTable in the DataModule
> - put in the onCreate method of the Form1:
> - DataModule.ADOConnect1.Connected:=true
> - DataModule.ADOTable1.Active:=True
> 
> And then i try to run i get a "Access Violation at address ..." error
> type. What I am Doing Wrong???????? 

See Project | Options - Forms, and check to see if the data module is
autocreated. It probably isn't...

Groetjes,
Bob Swart (aka Dr.Bob - www.DrBob42.com)

-- 
Bob Swart Training & Consultancy (eBob42) Borland Technology Partner
webmaster UK Borland User Group (BUG) & DotNet Developers Group (DDG)


Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada.
We have your brand: HP, Epson, Lexmark, Canon & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/kP..SB/49VGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

Delphi Tips & Tutorials...
http://www.delphicollection.com
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.