App.Data.Set

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Application functions > App > Data >

App.Data.Set

 

Description

 

Store a key/data pair into App object.

 

Syntax

 

APP.Data.Set(sKey, sData)[(Index1 [, Index2 [Index3]])]

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

sKey

String

No

Name of the key under which to store data.

Attention: sKey is key sensitive

sData

String

No

Data to store

Index1

Number

Yes

Optional index 1

Index2

Number

Yes

Optional index 2

Index3

Number

Yes

Optional index 3

 

Remarks

 

Attention: sKey is key sensitive

 

Optionally programmer can indicate up to 3 indexes to store multiple values for the same sKey. More or less like a single or multi dimensional array.  

 

Restrictions

 

See also

 

App.Data.Free, APP.Data.Count, APP.Data.Del, APP.Data.Get, APP.Data.Exists, APP.Data.PHash, APP.Data.Set

 

Examples

 
App.Data.Set("ConfigFileName"".\Config\ConfigFile.xml")

App.Data.Set("MyVar""MyValue")(1,2,3)