【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.11.10 DatasetObject::PercentText
Contents
Description
Scan dataset to return percent in text, 100 if all text and 0 if all numbers.
Syntax
int PercentText( DWORD dwCntrl = PT_SKIP_MISSING, int i1 = 0, int i2 = -1 )
Parameters
- dwCntrl
- [input] if specify PT_SKIP_MISSING, will skip count missing value, otherwise count as numeric.
- i1
- [input] row index to start the procedure
- i2
- [input] row index(exclusive) to end the procedure, -1 if to go to the end
Return
return percent in text, 100 if all text and 0 if all numbers
Examples
EX1
void DatasetObject_PercentText_Ex1() { Worksheet wks = Project.ActiveLayer(); Column cc = wks.Columns(0); DatasetObject dobj(cc); int nn = dobj.PercentText(); out_int("percent in text = ", nn); }
Remark
See Also
Header to Include
origin.h