MAINSAIL Language Manual, Section 44.12

previous   next   top   contents   index   framed top   this page unframed


44.12. prevAlpha

Figure 44–10. prevAlpha
$BUILTIN
INTEGER
PROCEDURE   prevAlpha   (INTEGER char);

prevAlpha returns the character code of the alphabetically previous character (same case) to that with character code char. It is undefined if char is not the character code for one of the lowercase letters b through z or for one of the uppercase letters B through Z.

Example 44–11. Use of prevAlpha
prevAlpha('z') = 'y'
prevAlpha('b') = 'a'
prevAlpha('B') = 'A'
prevAlpha('A') is undefined


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 44.12