AddKeyAndValue

<< Click to Display Table of Contents >>

Navigation:  TUserData > Methods >

AddKeyAndValue

funcrion AddKeyAndValue(Const AKey,AValue:string):boolean;

 

Description:

 

Add key and value to the TUserData instance;

 

Parameter:

 

 AKey: a key for the user define property, it is a string;

 AValue: the value, it is a string;

 

Returns:

 

true: add success;

false: add failed, if  the key is existed, if will return false;

 

Examples:

 

 UserData1.AddKeyandValue('Name','John');