Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > I

ISTR

Scroll Prev Top Next More

(ISTR('string',position))

 

Returns the corresponding integer value.

 

This function converts a single character, which you specify within a string by position, returning its corresponding ASCII Character Chart Decimal value.

 

In the following example, the INTEGER value of vDecimalValue is 65 for the capital letter A.

 

Example:

 

SET VARIABLE vDecimalValue = (ISTR('R:BASE Rocks!',4))

SHOW VARIABLE

vDecimalValue = 65 INTEGER