Adobe ColdFusion 8

CCFXStringSet::AddString

Syntax

int CCFXStringSet::AddString(LPCSTR lpszString)

Description

Adds a string to the end of the list.

Returns

The index of the string that was added.

Parameters

Parameter

Description

lpszString

String to add to the list

Example

The following example demonstrates adding three strings to a string set and saving the indexes of the items that are added:

CCFXStringSet* pSet = pRequest->CreateStringSet() ;
    int iRed = pSet->AddString( "Red" ) ;
    int iGreen = pSet->AddString( "Green" ) ;
    int iBlue = pSet->AddString( "Blue" ) ;