This function returns the name of a sheet.
1 excel.Workbook.getSheetName
<excel.Workbook.getSheetName index='index'>
<wb /> +
</excel.Workbook.getSheetName>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aindex | integer | Index of a sheet of which you want to know the name. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewb | Workbook | Workbook which contains the sheet. |
Returns | |
---|---|
Type | Description |
string | Name of the sheet. |
Example
Get the name of the second sheet of the book.
Copy
<xsql-script> <body> <set name='wb'> <excel.Workbook /> </set> <excel.Workbook.createSheet name='sheet1'> <wb /> </excel.Workbook.createSheet> <excel.Workbook.createSheet name='sheet2'> <wb /> </excel.Workbook.createSheet> <excel.Workbook.createSheet name='sheet3'> <wb /> </excel.Workbook.createSheet> <println> <excel.Workbook.getSheetName index='1'> <wb /> </excel.Workbook.getSheetName> </println> </body> </xsql-script>