<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
Array Statement
Array.length Function
Array.clear Function
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
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>
Array.length Function
Format
i = array_name.
length
(
ʃ
dimension
ʅ
);
Description
The
Array
.
length
function returns the size of an array dimension. When applied to a one-dimensional array, the
dimension
does not need to be specified.
Return Value
The function returns the length of the array dimension.
Example
Array
string
usmca_countries(
3
) =
"Canada"
,
"Mexico"
,
"United States"
;
usmca_countries.
length
();
// returns 3;
// ...
Array
AgeSexDeckArray(AGE_VS, SEX_VS);
do
numeric
age_counter =
1
while
age_counter <= AgeSexDeckArray.
length
(
1
)
do
numeric
sex_counter =
1
while
sex_counter <= AgeSexDeckArray.
length
(
2
)
// ...
enddo
;
enddo
;
See also
:
Array Object
,
Length Function