C++
AcString left( Adesk::Int32 nNumChars ) const;
Description
Returns a nNumChars length substring from the start of string.
Parameters
Parameters | Description |
---|---|
nNumChars | Input the number of characters of the substring to get |
Returns
An AcString consisting of the specified substring.
Remarks
Negative nNumChars is treated as -1 and returns the entire string.
Links
Previous Declaration
AutoCAD 2017 through AutoCAD 2024
AcString left(int nNumChars) const;
inline AcString AcString::left(int nNumChars) const;
History
AutoCAD 2025
nNumChars argument now expects an Adesk::Int32 instead of int.