Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetSheetIndex returns -1 #711

Closed
AngangGuo opened this issue Oct 10, 2020 · 0 comments
Closed

GetSheetIndex returns -1 #711

AngangGuo opened this issue Oct 10, 2020 · 0 comments
Labels
kind/documentation Improvements or additions to documentation

Comments

@AngangGuo
Copy link

Excelize v2.3.1

func (f *File) GetSheetIndex(name string) int
GetSheetIndex provides a function to get a sheet index of the workbook by the given sheet name. 
If the given sheet name is invalid, it will return an integer type value 0. 

The method returns -1 if the sheet name is invalid or if the sheet name doesn't exist. The last sentence should be:

If the given sheet name is invalid or sheet doesn't exist, it will return an integer type value -1. 
@xuri xuri added the kind/documentation Improvements or additions to documentation label Oct 11, 2020
@xuri xuri closed this as completed in ac3dce0 Oct 11, 2020
EugeneAndrosovPaser pushed a commit to ceearrashee/excelize that referenced this issue Nov 14, 2020
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this issue Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants