Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Greg Green XLSXWorkBookVFPX for extracting from Ex
Message
From
30/11/2018 22:17:02
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
01663900
Message ID:
01663955
Views:
47
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform