Previous Topic Next topic Print topic


coblines

Returns the number of lines on the screen.
Note: This function is supported for native COBOL only.

Syntax:

#include "cobscreen.h"

int coblines (void);

Parameters:

None.

Comments:

This function returns the depth in lines of the screen.

Equivalent COBOL Syntax:

call "CBL_GET_SCR_SIZE" using ...

Example:

To find out and display the depth of the screen use:

Windows:
int depth = coblines();

printf("Depth of screen = %d\n", depth);
UNIX:
int depth = coblines();

cobprintf("Depth of screen = %d\n", depth);
Previous Topic Next topic Print topic