vl-string-elt

AutoCad AutoLISP Functions

 
vl-string-elt
 
 
 

Returns the ASCII representation of the character at a specified position in a string

(vl-string-elt string position)

Arguments

string

A string to be inspected.

position

A displacement in the string; the first character is displacement 0. Note that an error occurs if position is outside the range of the string.

Return Values

An integer denoting the ASCII representation of the character at the specified position.

Examples

_$ (vl-string-elt "May the
Force be with you" 8)
70