Hi Frank,

Am Sonntag, den 06.01.2008, 20:31 +0100 schrieb Frank Schönheit - Sun
Microsystems Germany:
> Hi Marc,
> 
> > That is a sequence retrieving all table names into a string. Okay, not
> > so complicated, but if I had to explain someone why getting the forms is
> > one property away and the tables aren't, I'd stumble.
> > 
> > Since The documents View has to do anyways, why not make a shortcut for
> > tables and queries, too?
> 
> Names() = Connection.Tables/Queries.ElementNames
> 
> Is this what you mean?

Yes.

> > Btw. the last parameter of MetaData.getTables is documented as "NULL
> > get's all types of tables", but if it is set to NULL something like
> > "Object variable not set" occurs.
> 
> Yes, that's a long-standing bug. The API was originally designed (years
> ago) after JDBC. In Java, there in fact is the concept of a string
> variable being NULL, while in UNO, a string can never be NULL - it must
> be an Any then, which can be VOID.
> 
> Unfortunately, since UNO API must be stable, we cannot change this
> anymore. I really would like to do so - using this method, and similar
> ones, always requires special handling.

Wouldn't adapting the documenttion suffice? If the IDL-ref would
document it as is, that would be okay. I had not tried setting to NULL
if I wasn't told to do so.

Marc




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to