MAINSAIL Language Manual, Section 42.11

previous   next   top   contents   index   framed top   this page unframed


42.11. nextAlpha

Figure 42–15. nextAlpha
$BUILTIN
INTEGER
PROCEDURE   nextAlpha   (INTEGER char);

nextAlpha returns the character code of the alphabetically next character (same case) after that with character code char. It is undefined if char is not the character code for one of the lowercase letters a through y or for one of the uppercase letters A through Y.

Example 42–16. Use of nextAlpha
nextAlpha('y') = 'z'
nextAlpha('M') = 'N'
nextAlpha('Z') is undefined


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 42.11