Share

AcString::getAt

C++

wchar_t getAt(
    Adesk::Int32 nIndex
) const;

Description

Gets one character at the given position from the string.

Parameters

Parameters Description
nIndex Input zero-based index position of the character in the string

Returns

Character at the specified position in the string.

Remarks

Returns 0 if nIndex out of range.

Links

AcString

Previous Declaration

AutoCAD 2017 through AutoCAD 2024

wchar_t getAt(int nIndex) const;

inline wchar_t AcString::getAt(int nIndex) const;

History

AutoCAD 2025

nIndex argument now expects an Adesk::Int32 instead of int.

Was this information helpful?