On 12/19/10 08:39, Bernard Marcelly wrote:
I tried to make it work like this:Dim keyType As Object, valueType As Object, reflect As Object reflect = CreateUnoService("com.sun.star.reflection.CoreReflection") keyType = reflect.forName("string") valueType = reflect.forName("long") enuMap = com.sun.star.container.EnumerableMap.create(keyType, valueType) ' --> error : com.sun.star.uno.Type expected. If you look at the mapping of simple types for Basic in the Dev'Guide <http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Basic/Mapping_of_Simple_Types> you see that the UNO "type" is mapped in Basic to com.sun.star.reflection.XIdlClass So my code (and yours) should be accepted.
I'd suggest you file an issue for Basic. -Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
