Re: Problems with Delphi 7
"Fabiano Paolini" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <008401c346b6$11763ea0$2716a8c0@PAOLINI> |
Other problem is that Form may be created before DataModule, in this case the OnCreate of the form occurs before the datamodule exists. Possible solution is to put the commands in the OnShow event. Fabiano ----- Original Message ----- From: "Bob Swart" <[email protected]> To: <[email protected]> Sent: Thursday, July 10, 2003 8:24 AM Subject: Re: [Delphi] Problems with Delphi 7 > 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/ > > ------------------------ 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/