Function Entry: VL-STRING-ELT

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VL-STRING-ELT

Name

vl-string-elt

Class

Visual LISP Function

Syntax

(vl-string-elt string index)

Arguments and Values

  • string: source string
  • index: integer character position

Description

Returns the character code or character-designating value at the given position in the string.

Return Values

Integer character code.

Side Effects

None.

Compatibility

This function is especially sensitive to the underlying character-indexing model and therefore to Unicode-era changes.

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.

Notes

  • Autodesk documents zero-based indexing: the first character is at position 0.
  • Autodesk documents that an error occurs if index is outside the bounds of string.
  • Autodesk documents an AutoCAD 2021 change from legacy ASCII-range behavior to Unicode character codes under LISPSYS.