XPRMgetnextfield
XPRMgetnextfield |
Purpose
Synopsis
void *XPRMgetnextfield(XPRMmodel model, void *ref, int typcode, const char **name, int *type, int *number);
Arguments
model
|
Reference to a model
|
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
XPRMgetnextfield.
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
XPRMgetfieldval to retrieve the value of the corresponding field in an object of this record type.
Related topics