Initializing help system before first use

getnextfield

Purpose
Get the next field of a record type.
Synopsis
void *getnextfield(XPRMcontext ctx, void *ref, int typcode, const char **name, int *type, int *number);
Arguments
ctx 
Mosel's execution context
ref 
Reference pointer or NULL
typcode 
Type code of the record
name 
Field name
type 
Field type code
number 
Field number (in the record)
Return value
Reference pointer for the next call to getnextfield.
Further information
1. This function is used to enumerate fields of a record type. The second parameter is used to store the current location in the list of fields; if this parameter is NULL, the first field of the record is returned. This function returns NULL if it is called with the reference to the last field. Otherwise, the returned value can be used as the input parameter ref to get the following field and so on.
2. The name, type and number are the returned field properties. The field number is used by the function getfieldval ( setfieldval) to retrieve (set) the value of the corresponding field in an object of this record type.
3. All public fields of the record are enumerated by this function but if the model or package has been compiled with debugging information the private fields will also be returned. The macro XPRM_IS_PUBLIC(t) applied to the field type may be used to identify public fields.
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.