- Reserve
- Resize
- Shutdown
- Add
- AddArray
- AddArray
- Insert
- InsertArray
- InsertArray
- AssignArray
- AssignArray
- Update
- Shift
- Delete
- DeleteRange
- At
- CompareArray
- CompareArray
- InsertSort
- Search
- SearchGreat
- SearchLess
- SearchGreatOrEqual
- SearchLessOrEqual
- SearchFirst
- SearchLast
- SearchLinear
- Save
- Load
- Type
At
Gets the element from the specified array position.
string At(
|
Parameters
pos
[in] Position of the desired element in the array.
Return Value
The value of the element - success, ""- there was an attempt to get an element from a non-existing position (the last error code is ERR_OUT_OF_RANGE).
Note
Of course, "" may be a valid value of an array element. Therefore, always check the last error code after receiving such a value.
Example:
//--- example for CArrayString::At(int)
|