_CP_print_on

_CP_print_on


_CP_print_n Index Level _CP_prompt
Syntax int _CP_print_on(int expression)
Category C Interface
Type C Function
Description equivalent to the following FlashBASIC statement: print on expression

This function returns -1 if an error occurs. The error code is contained in _CP_errno.
Options
See Also C Functions introduction
Example The following example prints "hi" to print job 1.

CPSTR * s = _CP_mkstr("hi");

_CP_print_on(1);
_CP_print(s);
Warnings The environment must be set to _CP_pick_env() for this function to work correctly.
Compatibility AP 6.1
_CP_print_n Index Level _CP_prompt