Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Get Value from a cHash object giving KeyName

 

Syntax

 

sValue = <cHash>.Get(KeyName [, sDefaultValue])

 

Alternative syntax:

 

sValue = <cHash>.Get.KeyName

 

 

A cHash object support a free and dynamic form to specify key names: Get method can be omitted.

The following statements are equivalent:

sValue = <cHash>.Get(KeyName)

sValue = <cHash>.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.

sDefaultValue

String

Yes

If KeyName does not exists and sDefaultValue has been specified, sDefaultValue will be returned instead.

 

Remarks

 

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 s = ExportCsvOpt.Get(FieldSeparator)

String r = ExportCsvOpt.Get(Replace_DQ)

...

String s = ExportCsvOpt.Get.FieldSeparator

String r = ExportCsvOpt.Get.Replace_DQ

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software