Previous Topic: CaStringList(const CaStringList &src)

Next Topic: CaString & Find(const CaString szString)


bool Add(const CaString szString)

Adds the string to the list.

Owning Class

CaStringList

Arguments

const CaString szString - string to add

Return Value

bool - true if success, false if fails

Notes

If string is not valid then it fails.

Duplicates are not added, but function still returns true.

Example

CaString s(“My String”); CaStringList d; bool bResult = d.Add(s);

More information: