Board index » delphi » Adding passwords to a Paradox Table

Adding passwords to a Paradox Table

Please can someone help me...

I have an application with 100+ databases already in use at a number of
customers sites

I now want to password protect one of the databases (paradox) but I cannot
see how to add a new password
to an existing database from Delphi.
(I would also need to be able to check if the database had already been
passworded so as not password it twice)

many thanks

--
Peter Gregory
pe...@dglit.com

 

Re:Adding passwords to a Paradox Table


I've found an example at
http://www.borland.com/devsupport/bde/bdeapiex/dbidorestructure.html
and solve it

thanks

Quote
"Peter Gregory" <pe...@dglit.com> wrote in message

news:3a9abc0b$1_2@dnews...
Quote
> Please can someone help me...

> I have an application with 100+ databases already in use at a number of
> customers sites

> I now want to password protect one of the databases (paradox) but I cannot
> see how to add a new password
> to an existing database from Delphi.
> (I would also need to be able to check if the database had already been
> passworded so as not password it twice)

> many thanks

> --
> Peter Gregory
> pe...@dglit.com

Re:Adding passwords to a Paradox Table


the example wont compile under Delphi4 - the line

    Check(DbiGetObjFromObj(hDBIObj(Table.Handle), objDATABASE,
hDBIObj(hDb)));

gives a compiler error message "Incompatible Types String & Word"

any ideas ?

Quote
"Peter Gregory" <pe...@dglit.com> wrote in message news:3a9abf1b_1@dnews...
> I've found an example at
> http://www.borland.com/devsupport/bde/bdeapiex/dbidorestructure.html
> and solve it

> thanks

> "Peter Gregory" <pe...@dglit.com> wrote in message
> news:3a9abc0b$1_2@dnews...
> > Please can someone help me...

> > I have an application with 100+ databases already in use at a number of
> > customers sites

> > I now want to password protect one of the databases (paradox) but I
cannot
> > see how to add a new password
> > to an existing database from Delphi.
> > (I would also need to be able to check if the database had already been
> > passworded so as not password it twice)

> > many thanks

> > --
> > Peter Gregory
> > pe...@dglit.com

Re:Adding passwords to a Paradox Table


See the examples for DbiDoRestructure at
www.borland.com/devsupport/bde/bdeapiex.

--
Bill

Other Threads