<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > Data Structures > cHash > cHash Methods > <cHash>.Keys |
Description
Returns a string with the list of keys inside a cHash object concatenated by $CRLF separator.
Syntax
sKeys = <cHash>.Keys[(stringSep)]
Returns
String
Parameters
Name |
Type |
Optional |
Meaning |
stringSep |
String |
Yes |
Optional string separator to be used to separate key names. If not specified, $CRLF will be used |
Remarks
Returned list of keys will be sorted in ascending order
Restrictions
See also
Examples
dim ExportCsvOpt as new cHash
ExportCsvOpt.Set(
Filename: APP_SourcePath + "ADODB_Test_Export_Out.csv",
ColumnNames: %TRUE,
FieldSeparator: ";",
RecordSeparator: $crlf,
StringDelimiter: $dq,
DecimalSeparator: ".",
RecordBuffer: 1000,
Index: %TRUE,
IndexBase: 1,
MaxRecords = -1,
Replace_CR: %TRUE,
Replace_CR_Char: "",
Replace_LF: %TRUE,
Replace_LF_Char: "",
Replace_CRLF: %TRUE,
Replace_CRLF_Char = "",
Replace_DQ: %TRUE,
Replace_DQ_Char: "'"
)
...
String sKeys = ExportCsvOpt.Keys