|
<< Click to Display Table of Contents >> Delphi Examples: DbiAddPassword |
![]() ![]()
|
Add a password to the current session.
Delphi users should use TSession.AddPassword rather than directly calling dbiAddPassword. The method TSession.AddPassword is defined as:
procedure AddPassword(const Password: String);
The following code adds the password "Hip Hop" to TSession Session:
Session.AddPassword('Hip Hop');
Add a password to the specified handle's session:
Delphi users should use TSession.AddPassword. See DbiGetCurrSession to get the current session's handle. This example uses the following input:
| fDbiAddPassword(Session3.Handle, 'SPRINT'); |
The procedure is defined as:
procedure fDbiAddPassword(hSes: hDBISes; Pswd: String);
begin
Check(DbiSetCurrSession(hSes));
Check(DbiAddPassword(PChar(Pswd)));
end;