MAINSAIL Language Manual, Section 32.85

previous   next   top   contents   index   framed top   this page unframed


32.85. cvcs

Figure 32–87. cvcs
STRING
PROCEDURE   cvcs        (INTEGER char;
                         
OPTIONAL POINTER($areaarea);

cvcs converts a character code to the STRING that consists of the single character with the code char. area specifies the destination area for the resulting STRING if new STRING text is generated; see Section 29.4.

If char is not in the range 0 to $maxChar, cvcs returns the empty STRING.

Example 32–88. Use of cvcs
cvcs('A') = cvcs(65) = "A"
    # 
assuming the ASCII character set
    # 
in which 65 is the code for "A"

A garbage collection cannot occur during a call to cvcs.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 32.85