Page History
...
Code Block |
---|
The Examples below use the following equate values: Equ INIT_SET$ To 1 ;* Initializes a set returning a Equ ADD_TO_SET$ To 2 ;* Adds data to an existing set. Returns Equ UNION_SETS$ To 3 ;* Performs the union of two sets Equ INTERSECT_SETS$ To 4 ;* Performs the intersection of two Equ DIFFERENCE_SETS$ To 5 ;* Performs the difference of two Equ RESET_EXTRACT$ To 6 ;* Sets the extract parameters (restart Equ EXTRACT_FROM_SET$ To 7 ;* Extracts row data from a set. Returns Equ SET_INFO$ To 8 ;* Reports data about a set. Equ CLEAR_SET$ To 9 ;* Clears a set_handle from the library's |
Initialize A Set
Code Block |
---|
* Initialize a set set_A = "1" : @vm : "2" : @vm : "3" handle_A = RTI_SETS( INIT_SET$, set_A, 0, @vm ) |
...
Add to a Set
Code Block |
---|
* Initialize a set set_A = "1" : @vm : "2" : @vm : "3" handle_A = RTI_SETS( INIT_SET$, set_A, 0, @vm ) * Add to a set set_B = "2" : @vm : "3" : @vm : "4" hResult = RTI_SETS( ADD_TO_SET$, set_B, handle_A ) |