【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.14.4.2 find_col_by_name
Contents
Description
To find column by long name, if not found then find column by short name.
Syntax
int find_col_by_name( Worksheet & wks, LPCSTR lpcszName )
Parameters
- wks
- [input] the worksheet to find column
- lpcszName
- [input] column long name or short name
Return
returns column index if found else return -1
Examples
void find_col_by_name_test() { Worksheet wks = Project.ActiveLayer(); String colname = "col2"; int icolindex = find_col_by_name(wks, colname); if (icolindex >= 0) { printf("find the column, its index is %d", icolindex); } else printf("can't find the column"); }
Remark
See Also
Header to Included
origin.h