<cOptions>.Get

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Data Structures > cOptions > cOptions Methods >

<cOptions>.Get

 

Description

 

Get Value from a cOptions object giving KeyName

 

Syntax

 

sValue = <cOptions>.Get(KeyName)

 

Alternative syntax:

 

sValue = <cOptions>.Get.KeyName

 

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

KeyName



Any sequence of chars will be recognized as key name.

Special chars can be used as part of the key name: \ and . (point)

 

KeyName will always internally converted into capital letters. If you need to keep the KeyName as typed, please include it into double quoted string.

 

Remarks

 

Restrictions

 

See also

 

Examples

 
dim ExportCsvOpt as new cOptions
ExportCsvOpt.Set(
                    Filename: APP_SourcePath + "ADODB_Erbolario_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 s = ExportCsvOpt.Get(FieldSeparator)

String r = ExportCsvOpt.Get(Replace_DQ)

...

String s = ExportCsvOpt.Get.FieldSeparator

String r = ExportCsvOpt.Get.Replace_DQ