4 messages in org.openoffice.fr.progprobleme de tri
FromSent OnAttachments
Kohler GerardApr 12, 2008 1:23 am 
Bernard MarcellyApr 12, 2008 4:41 am 
yves dutrieuxApr 12, 2008 9:14 am 
Kohler GerardApr 12, 2008 12:13 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:probleme de triActions...
From:Kohler Gerard (koh@oceanetpro.net)
Date:Apr 12, 2008 1:23:59 am
List:org.openoffice.fr.prog

bonjour,

j'ai écris une routine pour trier une plage de données dans une feuille calc mais j'ai une erreur :

Runtime Error Basic Sous-procedure ou procedure de fonction non définie

à la ligne : setPropVal( DescrTri, "SortFields", ConfigTri())

je ne vois pas où est mon erreur .

voici ma routine :

/*************** Sub trielafeuille() Dim zoneDeTri As Object Dim ConfigTri(0) As New com.sun.star.table.TableSortField Dim DescrTri As Variant

zoneDeTri = sheetIn.getCellRangeByPosition(0,9,4,100) ConfigTri(0).Field = 0 ConfigTri(0).IsAscending = true DescrTri = zoneDeTri.createSortDescriptor setPropVal( DescrTri, "SortFields", ConfigTri()) setPropVal( DescrTri, "IsSortColumns", false) setPropVal( DescrTri, "CopyOutPutData", false) setPropVal( DescrTri, "IsUserListEnabled", false) setPropVal( DescrTri, "BindformatsToContent", false) setPropVal( DescrTri, "ContainsHeader", false) zoneDeTri.Sort( DescrTri()) End Sub *****************/

merci de votre aide

Gérard

systeme : Mandriva 2008 , OpenOffice 2.2.1