Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Greg Green XLSXWorkBookVFPX for extracting from Ex
Message
De
30/11/2018 22:17:02
 
 
À
30/11/2018 14:01:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
01663900
Message ID:
01663955
Vues:
48
>Which method determines how many rows are in the spreadsheet? And how do you iterate through all rows?

Sorry for the late reply, sample code:
FOR lnRow=1 TO loExcel.GetLastRowNumber(lnWB, lnSheet)
     loRowData = loExcel.GetSheetRowValues(lnWB, lnSheet, lnRow)
     IF !ISNULL(loRowData)
          FOR lnCol=1 TO loRowData.Count
                  ? "Data Type: " + loRowData.List[lnCol, 2]
                  ? "Data Value: " + TRANSFORM(loRowData.List[lnCol, 1])
          ENDFOR
     ENDIF
ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform