Hallo,
Im DevelopersGuide, 3.4.3
(http://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.xhtml)
finde ich folgende Aussage:
Always use the type Variant to declare variables for UNO Basic objects,
not the type Object. The OpenOffice.orgBasic type Object is tailored for
pure OpenOffice.orgBasic objects and not for UNO OpenOffice.orgBasic
objects. The Variant variables are best for UNO Basic objects to avoid
problems that can result from the OpenOffice.orgBasic specific behavior
of the type Object:
Dim oService1 ' Ok
oService1 = CreateUnoService( "com.sun.star.anywhere.Something" )
Dim oService2 as Object ' NOT recommended
oService2 = CreateUnoService( "com.sun.star.anywhere.SomethingElse" )
Im Programmierhandbuch, S. 77
(http://docs.sun.com/app/docs/doc/819-1326?a=load)
finde ich dies:
Um ein Universal Network Object in StarOffice Basic zu verwenden, bedarf
es einer Variablendeklaration für das verknüpfte Objekt. Die Deklaration
erfolgt über die Dim-Anweisung (siehe Kapitel 2). Für die Deklaration
einer Objektvariable ist die Typbezeichnung Object zu verwenden:
Dim Obj As Object
Was ist richtig?
mfG
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]