#include "SaPopCalls.h"
int SaGetCancelStatus();
SaGetCancelStatus
can be used to determine if the last request was cancelled through the Cancel box, or in the Login screen. A value of 1 indicates that a cancel occurred; 0 indicates otherwise. This function is useful to break out of loops, set up with initial and final code as shown in the example below.
int i, NumInserts;
for (i= 0; i<NumInserts; i++)
{
/*** Sapphire/Web code to run insert Stored Procedure or
DSQL ***/
if (SaGetCancelStatus())
break;
}