Click or drag to resize

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: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public int addElement(
	string text
)

Parameters

text  String
The name of the index to be added to the set.

Return Value

Int32
Integer sequence number of the index within the set, -1 in case of an error.
Example
C#
XPRBprob prob = new XPRBprob("NewProb");
XPRBindexSet idxset = new XPRBindexSet();
...
int seqNum;
seqNum = idxset.addElement("NewSetElement");
See Also