Initializing help system before first use

addsetelement

Purpose
This subroutine is deprecated and will be removed in a future release. Use subroutine findident of module mmreflect to find set, then += operator to add elements.
Add a new element to a named set
Synopsis
procedure xreflect~addsetelement( entityname:string, newvalue:xreflect~basicvalue )
Arguments
entityname 
The name of the public entity to add to
newvalue 
The value to add to the entity
Example
The following:
public declarations
  myvar: set of integer,
end-declarations
myvar := {1,2,3}
addsetelement('myvar',basicvalue(4))
writeln('myvar=',myvar)
produces this output:
myvar={1,2,3,4}
Further information
1. If the specified set already contains the new value, it will be unchanged.
2. If the specified entity name cannot be found, the model will terminate with a runtime error.
3. If the specified entity is not a set of a supported type, the model will terminate with a runtime error.
4. If the supplied basicvalue does not contain a value of the same type as the specified set, the model will terminate with a runtime error.
5. If the specified entity is a constant set, the model will terminate with a runtime error unless the given value is already in the set.
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.