Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTString::SubString

Syntax

CTString SubString(const NINT index, const NINT count) const

Parameters

  • index [in] The start position of the substring. An empty string will be returned if index is greater than the length of the CTString. If index is negative, a CTException is thrown with the error code set to CTDBRET_INDEXRANGE (4005).
  • count [in] The maximum number of characters in the substring.

Description

Retrieves a specified substring of the CTString.

Return

SubString returns the CTString object with the substring.

See also

Pos()

TOCIndex