UnifaceEntity.createOccurrence

The createOccurrence method creates an occurrence.

import com.compuware.uniface.*;

int createOccurrence (int occNr)

Parameters

occNr—sequential number of the occurrence you want to create. If occNr is less than zero, the new occurrence is appended to the set of occurrences. If occNr is less than or equal to the number of occurrences plus one, the new occurrence is inserted in the specified location, moving all higher numbered occurrences up by one.

Return Values

The createOccurrence method returns the number of the new occurrence. The createOccurrence method throws a UnifaceException if the occurrence number is out of range or zero (the Java call-in does not support the concept of current occurrence).

Description

The behavior of this method is equivalent to the creocc ProcScript statement.