Skip to main content
Table of Contents

TTMSFNCDataGridExcelIO.LoadSheetNames Method

Reads the worksheet names of a workbook into SheetNames without importing any data.

API unit family: TMSFNCDataGridExcelIO Declaring type: TTMSFNCDataGridExcelIO

Syntax

FMX.TMSFNCDataGridExcelIO.hppPascalC++
procedure LoadSheetNames(const FileName: string);
void __fastcall LoadSheetNames(const System::UnicodeString FileName);

Remarks

Does not require a grid to be assigned. Typically used to let the user pick a sheet before calling the SheetName overload of XLSImport.

Parameters

Name Description
FileName Path of the .xls workbook.