Hi Fernand,

> Please tell me: Gives XDatabaseDocumentUI faster, better, saver 
> connection than the old stuff  ??

It gives a better, well-defined state. For instance, when you open a
form using the XDatabaseDocumentUI, then it will be tracked by the
application main window, and closed automatically when the DB doc is
closed. When going via loadComponentFromURL at the forms collection,
then this tracking cannot happen.

Also, the loadComponent reuses the connection which the DB doc already
established (if so), so you do not need to determine this manually. If
no connection was established, yet (XDatabaseDocumentUI.isConnected()),
then you need to do so (.connect()) - that might be worth an improvement.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         frank.schoenh...@sun.com -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to