To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116057


User arielch changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|UNCONFIRMED               |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from [email protected] Sun Dec 12 00:32:21 
+0000 2010 -------
With OOo 3.3.0 OOO330m17 (Build:9551) I get all the elements on the
configuration node.
There is a difference in storing the sequence<string> in a variable, and
accessing its elements by index:

Sub RegleNumerotationIcones_OK rem cette macro regle lors de l'installation la
numerotation des icones de la barre dmaths
        NomIcone =
Array("writeformula","lancecreationtableau","metenformule","metenvecteur","meten
mesurealgebrique","metenangle","metenlimite","metenintegrale","metensomme","mete
nproduit","metenpointe","metendoublepointe","metenracine","metensysteme","metenm
atrice","systemegraphique","matricegraphique","formulegraphique","formulegraphiq
ue2",_
                        
"loadparcro","metentreaccolades","metentreparentheses","metenitalic","atalante",
"bordure_selection","affectetailleformule","encadreformule","augmentetailleformu
le","diminuetailleformule","repregraphique","lancetablevar","repregrille","repre
diagbox","fairefigure","changemodeformule","lancebackup")
rem                     
"loadparcro","metentreaccolades","metentreparentheses","metenitalic","atalante",
"bordure_selection","affectetailleformule","encadreformule","augmentetailleformu
le","diminuetailleformule","repregraphique","lancegraphplotter","lancetablevar",
"repregrille","reprediagbox","fairefigure","lancebatchconv","changemodeformule",
"choixoptionsdmaths","lancebackup")
        oConfigAccess = GetConfigAccess(
"/org.openoffice.Office.Addons/AddonUI/OfficeToolBar", True )

        If  oConfigAccess.hasByName("org.openoffice.Office.addon.DMathsBarre")
Then
                oAddon =
oConfigAccess.getByName("org.openoffice.Office.addon.DMathsBarre")
                Dim sElementNames$()
                sElementNames = oAddon.getElementNames()
                MsgBox Join(oAddon.getElementNames(), ", ")
                For I = LBound(sElementNames) To UBound(sElementNames)-3 rem car
il y a les trois images des applications preferees
                LaChaine = oAddon.getByname(sElementNames(I)).ImageIdentifier
                NbreCarac = Len(NomFichier(LaChaine))
                oAddon.getByname(sElementNames(I)).ImageIdentifier =
Mid(LaChaine,1,Len(LaChaine)-NbreCarac) & NomIcone(I)
rem             Print LaChaine," ",
oAddon.getByname(oAddon.ElementNames(I)).ImageIdentifier',"
",oAddon.ElementNames(I)
                MsgBox  "sElementNames(" & CStr(I) & ")            : " &
sElementNames(I) & chr(13) & _
                                "oAddon.ElementNames(" & CStr(I) & ") : " &
oAddon.ElementNames(I)
                Next I
        Endif
        oConfigAccess.commitChanges()
End Sub


If you see a difference in how it worked before, this must be how OOo Basic
handles oAddon.ElementNames(I) (besides, your code is less efficient this way as
it is invoking getElementNames() every loop and then accessing the Ith element,
you should store the sequence<string> in a variable!).

So this issue is invalid.
Open a new one if you think there is a issue in OOo Basic.


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to