addelset
| addelset | 
  Purpose
 
  
  Synopsis
 
 int addelset(XPRMcontext ctx, XPRMset set, XPRMalltypes *elt, int *ndx);
 
  Arguments
 
 | 
     ctx 
     | 
     Mosel's execution context
     | 
| 
     set 
     | 
     Reference to a set
     | 
| 
     elt 
     | 
     The element to add
     | 
| 
     ndx 
     | 
     Returned index of the element added
     | 
  Return value
 
 
 0 if successful, a positive value otherwise.
 
  Further information
 
 
 This function adds a new element to a set. The function fails if the set is not dynamic and the element is not already contained in the set. On success the index of the element is returned in
 ndx. Note that when applied to a range set, the index value is the inserted value itself.
 
 
  Related topics
 
  
