Check-If-SuperSet
Command Description
Determine if it is a superset or not. Return true if yes, else return false
Command Prototype
bRet = Set.IsSuperSet(ObjSet,ObjSet1)
Parameter Description
| Parameter | Required | Type | Default | Description | 
|---|---|---|---|---|
| ObjSet | True | expression | ObjSet | The set object to operate on | 
| ObjSet1 | True | expression | ObjSet1 | The sets to compare for intersections | 
return
bRet,The variable used to save the output of the command.
Demo
Dim ObjSet 
Dim   ObjSet1 
Dim bRet 
ObjSet = Set.Create() 
Set.Add(ObjSet,1) 
Set.Add(ObjSet,2) 
// ObjSet   =   {1,2} 
 
ObjSet1 = Set.Create() 
Set.Add(ObjSet1,1) 
// ObjSet1   =   {1} 
 
bRet = Set.IsSuperSet(ObjSet,ObjSet1) 
TracePrint(bRet) 
/** 
    bRet = true 
*/