Please enable JavaScript to view this site.

Function to extract a single character from a string variable.

The corresponding ascii code is returned as an integer value.

Syntax

i32 str_asc (string str, i32 nPos)

str

Locates the string of interest

nPos

Locates the position of the character within the string

Result

Returns the ascii code corresponding to the extrapolated character.

If nPos points to a character outside the string (or the string is empty), the returned value will be 0

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC