Initializing help system before first use

getifunvalue

Purpose
Get the content of a union and perform type expansion as necessary.
Synopsis
int getifunvalue(XPRMcontext ctx, int type, XPRMalltypes *value, int expand);
Arguments
ctx 
Mosel's execution context
type 
Type of the referenced value
value 
Pointer to an area where the value is stored (to be updated)
expand 
If non-zero user types will be expanded
Return value
An encoded type, 0 if the reference is an undefined union or -1 in case of error (typically a NULL reference).
Further information
1. If the referenced value is a union the function getunvalue is called and the value is updated with the content of this union, the returned type corresponds to this new value.
2. If the option expand is stated the type will be expanded using gettypeprop: for instance if the encoded type refers to a set of integers the function will return XPRM_STR_SET|XPRM_TYP_INT instead of the code for this type (the expansion is executed only on user types defining arrays, sets or lists).
3. This function will return its type argument and keep value unchanged if it cannot perform any operation.

© 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.