Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread How can i check if a table is password protected vith V4 ?
Mon, Sep 21 2009 6:57 AMPermanent Link

"M.Sandra"
See subject.

Thanks!
Mon, Sep 21 2009 9:54 AMPermanent Link

"Robert"

"M.Sandra" <nospam@nospam.com> wrote in message
news:CF7A6D5E-4013-431B-A8AD-70337986BFB0@news.elevatesoft.com...
> See subject.
>
> Thanks!

Check table.encrypted property. Table does not have to be open.

Robert

Mon, Sep 21 2009 10:35 AMPermanent Link

"Alessandra"
Robert wrote:
> Check table.encrypted property. Table does not have to be open.

thanks Robert!

so, to check if the password is encrypted with the proper password i
should..

function properpassword(t:tdbisamtable):boolean;
begin
result:=t.encrypted;
if proper then begin
 session.removeallpasswords;
 session.addpassword('mypword');
 try t.open; t.close except result:=false; end;
end;
end;

right ?

Sandra
Mon, Sep 21 2009 10:36 AMPermanent Link

"Alessandra"
Alessandra wrote:
> so, to check if the password

hem.. the *table*  :DDD

Sandra
Mon, Sep 21 2009 11:59 AMPermanent Link

"Robert"

"Alessandra" <alessandra@sarasoft.net> wrote in message
news:5F6BC628-49C3-4C67-B78C-84D6A5114097@news.elevatesoft.com...
> Robert wrote:
>> Check table.encrypted property. Table does not have to be open.
>
> thanks Robert!
>
> so, to check if the password is encrypted with the proper password i
> should..
>
> function properpassword(t:tdbisamtable):boolean;
> begin

Looks good to me, understanding of course that at the end of your function
you have modified the password list.

Robert
> result:=t.encrypted;
> if proper then begin
>  session.removeallpasswords;
>  session.addpassword('mypword');
>  try t.open; t.close except result:=false; end;
> end;
> end;
>
> right ?
>
> Sandra

Image