Anonymous Anonymous - 2 months ago
321 0

No description

C#

dsadsa

IF HMI.nNumAlarmListItems MOD 8 = 0 AND HMI.nNumAlarmListItems <> 0 THEN
		HMI.nAlarmListMaxPageNum := HMI.nNumAlarmListItems/8;
		ELSIF HMI.nNumAlarmListItems MOD 8 <> 0 AND HMI.nNumAlarmListItems <> 0 THEN
			HMI.nAlarmListMaxPageNum := (HMI.nNumAlarmListItems/8)+1;
			ELSE 
			HMI.nAlarmListMaxPageNum := 1;
END_IF

IF HMI.nAlarmListPage = HMI.nAlarmListMaxPageNum THEN
	HMI.bAlarmListLastPageInd := TRUE;
	ELSE
		HMI.bAlarmListLastPageInd := FALSE;
END_IF