Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 675 -
------------------------------------------------------------------------------
1.3 Test screen switching status. <Main,Alarm>
------------------------------------------------------------------------------
[Name]
crt_isnewscrn
[Syntax]
#include <crt.h>
int crt_isnewscrn( void ) ;
[Arguments]
------
[Return]
Returns non-zero value if any screen switching has been done after
the last calling this function. If not, returns zero.
[Description]
Test whether any screen switching has been done or not.
This function is used to check the new entrance to the user screen
by screen switching such as
(any user screen) -> (CNC screen) -> (the same user screen).
In this case, it is impossible to get screen switching status by only
calling "crt_getcurscrn" function.
[Example]
The following program displays whether any screen switching has been
done or not.
#include <crt.h>
#include <stdio.h>
void example( void )
{
if ( crt_isnewscrn() )
printf( "Any" ) ;
else
printf( "No" ) ;
printf( " screen switching has been done.\n" ) ;
}