Initializing help system before first use

XPRBgetidxel

Purpose
Get the index number of an index.
Synopsis
int XPRBgetidxel(XPRBidxset idx, char *name);
Arguments
idx 
A BCL set name
name 
Name of an index in the set.
Return value
Sequence number of the index in the set, or -1 if not contained.
Example
XPRBprob prob;
XPRBidxset iset;
int val;
   ...
iset = XPRBnewidxset(prob,"Set",100);
XPRBaddidxel(iset, "first");
val = XPRBgetidxel(iset, "first");
This defines an index set , iset, with space for 100 entries, adds an index, first, to the set and subsequently retrieves its sequence number.
Further information
An index element can be accessed either by its name or by its sequence number. This function returns the sequence number of an index given its name.
Related topics

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