CharValue('Text', 'CharNumber=0')

Arguments

'Text'

Text signal

'CharNumber'

Position of the character in the text, default = 0

Description

This function returns the ASCII decimal value of the character at the 'CharNumber' position in a text. The default provides the first character (position = 0).

Example: If 'text' has the value "A_text for test", then the result of CharValue('Text', 0) is the ASCII value 65 for the uppercase A.

Example

Presenting the example referred to in the description

Solution

Query of the ASCII decimal value of the first character in the text "A_Text for test". A has the value 65 in the ASCII table.