Initializing help system before first use

getnextuncomptype

Purpose
Get the next compatible type of a union type.
Synopsis
void *getnextuncomptype(XPRMcontext ctx, void *ref, int typcode, int *type);
Arguments
ctx 
Mosel's execution context
ref 
Reference pointer or NULL
typcode 
Type code of the union
type 
Returned type ID
Return value
Reference pointer for the next call to getnextuncomptype.
Further information
1. This function is used to enumerate compatible types of a union type. The second parameter is used to store the current location in the list of types; if this parameter is NULL, the first compatible type of the union is returned. This function returns NULL if it is called with the reference to the last type. Otherwise, the returned value can be used as the input parameter ref to get the following type and so on.
2. A union has at least 2 compatible types: the first one is the type used for initialization of the union from a textual representation. An 'any' type is characterized by a 0 value returned for the second (and last) returned type ID.
Related topics

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.