Map objects  clear()

Chapter 5: General Objects and Methods

add()

Description

Adds a string pair to clMap.

Syntax

int add(string key, string element);

Parameter

Description

key

String that identifies the item to be added.

element

String that contains the data that goes with the key.

Return value

Always returns 1.

Usage

Pointer to object

Object

pclMapObj->add(“myKey”,    “myElement”);

myclMapObj.add(“myKey”,    “myElement”);





Copyright © 2005. Sybase Inc. All rights reserved. clear()

View this book as PDF