XPRBindexSetaddElement Method |
Add an index to an index set. The index entry is only added to the
set if no identical index already exists. Both in the case of a new
set element and an existing one, the method returns the sequence
number of the index in the index set. Note that the numbering of
index elements starts with 0.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int addElement(
string text
)
Public Function addElement (
text As String
) As Integer
Parameters
- text String
- The name of the index to be added to the set.
Return Value
Int32Integer sequence number of the index within the set, -1 in case of an error.
ExampleXPRBprob prob = new XPRBprob("NewProb");
XPRBindexSet idxset = new XPRBindexSet();
...
int seqNum;
seqNum = idxset.addElement("NewSetElement");
See Also