Previous Topic: bool Remove(const CaString szString)

Next Topic: CaString & Find(LPCTSTR szString)


bool Add(LPCTSTR szString)

Adds the string to the list.

Owning Class

CaStringList

Arguments

LPCTSTR 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

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

More information: