Board index » delphi » TDatabase , params ?

TDatabase , params ?

Hi..

Please, answer this simple (not for me) question:

What are all params of the TDatabase component ?
And how do I add them (change) at run time.

 

Re:TDatabase , params ?


YES

Zarko Gajic ???g??31 <6qtvp2$...@as041.tel.hr>...

Quote
>Hi..

>Please, answer this simple (not for me) question:

>What are all params of the TDatabase component ?
>And how do I add them (change) at run time.

Re:TDatabase , params ?


Quote
Zarko Gajic wrote in message <6qtvp2$...@as041.tel.hr>...
>Hi..

>Please, answer this simple (not for me) question:

>What are all params of the TDatabase component ?
>And how do I add them (change) at run time.

It depends on the Database driver. Double click on a TDatabase component
during design time to bring up the Database editor, choose the driver type
and click on the Default button to see what parameters are available.

        -- Kirk

Re:TDatabase , params ?


What you call params ?
Components have properties, methods & events. The list of these things for
TDataBase is a massive stuff.
Take a look at the Delphi TDataBase Component and you can see everything.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

Re:TDatabase , params ?


On 13 Aug 1998 11:09:40 GMT, "kroma" <kr...@worldnet.att.net> wrote:
Quote

>It depends on the Database driver. Double click on a TDatabase component
>during design time to bring up the Database editor, choose the driver type
>and click on the Default button to see what parameters are available.

   I tried with the MSACCESS driver
   I clicked DEFAULT and add all default.
Here' what I have:

DATABASE NAME=C:\SYSDATA.MDB
USER NAME=
OPEN MODE=READ/WRITE
LANGDRIVER=
SYSTEM DATABASE=
PASSWORD=

When I click connect, it always says INVALID PARAMETER.
The same happen at first when I have nothing in PARAMETER

Re:TDatabase , params ?


Quote
Anders Lee wrote in message <35d3d836.11206...@News.hk.super.net>...

>DATABASE NAME=C:\SYSDATA.MDB
>USER NAME=
>OPEN MODE=READ/WRITE
>LANGDRIVER=
>SYSTEM DATABASE=
>PASSWORD=

>When I click connect, it always says INVALID PARAMETER.
>The same happen at first when I have nothing in PARAMETER

You're supposed to either complete the parameter or delete it from the list
before using it, but know you know what parameters can be used with the
MSACCESS driver.

        -- Kirk

Re:TDatabase , params ?


Quote
"kroma" <kr...@worldnet.att.net> wrote:

>Anders Lee wrote in message <35d3d836.11206...@News.hk.super.net>...

>>DATABASE NAME=C:\SYSDATA.MDB
>>USER NAME=
>>OPEN MODE=READ/WRITE
>>LANGDRIVER=
>>SYSTEM DATABASE=
>>PASSWORD=

>>When I click connect, it always says INVALID PARAMETER.
>>The same happen at first when I have nothing in PARAMETER

>You're supposed to either complete the parameter or delete it from the list
>before using it, but know you know what parameters can be used with the
>MSACCESS driver.

  Actually I tried successful by creating an Alias using MSACCESS with
only the parameter of DATABASE NAME (which is the MDB file) with a
TQUERY and TTABLE.  I don't see any other necessary parameter needed.
But I can't get it work by clicking connect=true with the TDATABASE.

Re:TDatabase , params ?


If you are trying to use Access97 with Delphi then you will need BDE 5.
Once you have BDE 5, you will need to open the BDE administrator, click
on Configuration, Drivers, Native and then MSACCESS.  Make sure that
the  DLL32 value is set to IDDA3532.DLL.

Oliver

Quote
Anders LEE wrote:

>   Actually I tried successful by creating an Alias using MSACCESS with
> only the parameter of DATABASE NAME (which is the MDB file) with a
> TQUERY and TTABLE.  I don't see any other necessary parameter needed.
> But I can't get it work by clicking connect=true with the TDATABASE.

Re:TDatabase , params ?


On Sat, 15 Aug 1998 09:42:33 +1000, Oliver Townshend

Quote
<oli...@zip.com.au> wrote:
>If you are trying to use Access97 with Delphi then you will need BDE 5.
>Once you have BDE 5, you will need to open the BDE administrator, click
>on Configuration, Drivers, Native and then MSACCESS.  Make sure that
>the  DLL32 value is set to IDDA3532.DLL.

>Oliver

      Surprisingly, I did.
      I have BDE 5, changed DLL32 to IDDA3532.dll
      But the logon prompt still pop up. and I can't connect with
TDatabase.
     But it works with TQuery with an alias even when I use BDE4.5
     Strange.

Other Threads