setInt

Set an integer value in the dictionary.

virtual void setInt(const string &key, int value) = 0;

Parameters

key: The key to be looked up in the dictionary.

value: The value to be associated with key in the dictionary.

Return Value

None.

Remarks

Key is associated with the value in the dictionary. If key already exists in the dictionary then the old value is replaced by value. If key is not a key in the dictionary then a new name value pair is added to the dictionary.

Example

setInt("portValue", 81);

See also: getInt

 

This topic was last updated on 2月 01, 2019, at 11:13:23 午前.

Eggplant icon Eggplant.io | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant