- Function CharacterNumber(text)
CharacterNumber
The function CharacterNumber
returns the character number of the
first character in a string. It returns 0 for the empty string.
CharacterNumber(
text ! (input) a scalar string expression
)
Arguments
- text
The string for which you want to have the value of the first character.
Return Value
The function CharacterNumber returns a value in the range { 0 .. }.
Example
The code:
p_charNoPct := characterNumber( "%" );
display p_charNoPct ;
will produce the following in the listing file:
p_charNoPct := 37 ;