TOracleLogon bug report

masfaw

Member
TOracleLogon.Execute return an incorrect value. To reporduce do the following:

1. Start an application with TOracleLogon (This app should be display the TOracleLogon.Execute return value).

2. Enter a bad username or password and click "OK" button.

3. Clear the Oracle error message.

4. Now click the "Cancel" buttton on the OracleLogin dialog.

The returned value should be false, but true is returned.

------------------
Michael
 
The return value will be False if the user has done nothing to change the session. This will happen when he only presses the cancel button.

------------------
Marco Kalter
Allround Automations
 
Originally posted by mkalter:
The return value will be False if the user has done nothing to change the session. This will happen when he only presses the cancel button.

I am not sure I understand your reply. If you follow the steps described above, pressing the cancel button returns True. Is this not a bug?

------------------
Michael
 
No, because you first tried to logon with a wrong password. A logon attempt has been performed on the session, and if the session was previously connected, it is now disconnected.

The return value indicates that the end user has done nothing more than pressing the cancel button. In other words: nothing has changed, and the whole action may be ignored as if it didn't happen.

If you want to know if the user successfully logged on, check Session.Connected instead.

------------------
Marco Kalter
Allround Automations
 
Back
Top