<GetStart>
CSPro User's Guide
The CSPro System
Data Dictionary Module
The CSPro Language
Data Entry Module
Batch Editing Applications
Tabulation Applications
Data Sources
CSPro Statements and Functions
Statement Format Symbols
Alphabetical List of Functions and Statements
List of Reserved Words
Deprecated Features
Declaration Statements
Symbol Functions
Item Functions
Array Object
Audio Object
Barcode and QR Codes
Case Object
Document Object
File Object
Freq Object
Geometry Object
HashMap Object
Image Object
List Object
Map Object
Path
Pff Object
SystemApp Object
ValueSet Object
ValueSet Statement
ValueSet.add Function
ValueSet.remove Function
ValueSet.clear Function
ValueSet.length Function
ValueSet.randomize Function
ValueSet.show Function
ValueSet.sort Function
Program Control Statements
Assignment Statements
Data Entry Statements and Functions
Batch Edit Statements
Numeric Functions
String Functions
Multiple Occurrence Functions
General Functions
Date and Time Functions
External File Functions
Synchronization Functions
Templated Reporting System
HTML and JavaScript Integration
Action Invoker
Appendix
<CSEntry>
<CSBatch>
<CSTab>
<DataViewer>
<TextView>
<TblView>
<CSFreq>
<CSDeploy>
<CSPack>
<CSDiff>
<CSConcat>
<Excel2CSPro>
<CSExport>
<CSIndex>
<CSReFmt>
<CSSort>
<ParadataConcat>
<ParadataViewer>
<CSCode>
<CSDocument>
<CSView>
<CSWeb>
ValueSet.length Function
Format
i = valueset_name.
length
();
Description
The
ValueSet
.
length
function returns the number of values defined in the
ValueSet
object. When multiple value codes are linked to a single label, each multiple set counts as a single value.
Return Value
The function returns the length of the value set.
Example
PROC
HOUSEHOLD_SELECTION
onfocus
ValueSet
households_vs;
// ...
if
households_vs.
length
() =
0
then
errmsg
(
"There are no households to select"
);
reenter
MAIN_MENU;
endif
;
See also
:
ValueSet Object