Page 1 of 1
ZConnection User property value
Posted: 19.06.2007, 20:27
by waheed
After using the login prompt to connect to the database the value of User is blank why? It is blank even if I showed the User property onAfterConnect event.
Posted: 19.06.2007, 22:16
by kmr
Don't know the reason but I assume, the user property is used as some kind of default value for connecting silently and is not written back by manual login, cause this could cause some inconsistency:
in case you close the connection and reconnect user and password properties could be used to connect silently (without login prompt).
Maybe I'm totally wrong, since I've never used that login prompt. So I don't know if silent connection is even possible when login prompt property is set to true.
Was just brainstorming. :-)
Posted: 20.06.2007, 08:17
by mdaems
kmr is right. It's actually written like that in the TZConnection.Connect function comments.
In case of a second connect the user and password will be required by a login prompt again.
Mark