<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
HashMap Statement
HashMap.getKeys Function
HashMap.contains Function
HashMap.length Function
HashMap.remove Function
HashMap.clear Function
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>
HashMap.clear Function
Format
b = hashmap_name.
clear
();
Description
The
HashMap
.
clear
function removes all values from a
HashMap
.
Return Value
The function returns a logical value of 1 (true).
Example
PROC
GLOBAL
HashMap
invalidValuesByPerson
default
(
0
);
PROC
CENSUS_LEVEL
List
string
person_list;
invalidValuesByPerson.
getKeys
(person_list);
do
numeric
counter =
1
while
counter <= person_list.
length
()
errmsg
(
"%s had %d invalid values"
,
strip
(person_list(counter)),
invalidValuesByPerson(person_list(counter)));
enddo
;
invalidValuesByPerson.
clear
();
PROC
SEX
if
not
invalueset
(SEX)
then
inc
(invalidValuesByPerson(PERSON_NAME));
endif
;
PROC
AGE
if
not
invalueset
(AGE)
then
inc
(invalidValuesByPerson(PERSON_NAME));
endif
;
See also
:
HashMap Object
,
HashMap.remove Function