version 6.0.6
OP Remove From Set (connectID; tableID; setName) Longint
| Parameter | Type | Description | |
| connectID | Longint | Unique ID for the established connection | |
| tableID | Integer | ID of the table | |
| setName | String | Name of the set | |
| Function result | Longint | Error code |
Description
The command OP Remove From Set removes from setName the current record of the specified table.
Example
Here is a typical use of the Sets comands:
$ErrCode:=OP Single query (vConnectID;$Server_Table;$Server_Field;"=";>vValue;vRecords)
$ErrCode:=OP Create Set (vConnectID;$Server_Table;"SetA")
$ErrCode:=OP All records (vConnectID;$Server_Table)
$ErrCode:=OP Create Set (vConnectID;$Server_Table;"SetNoA")
ARRAY LONGINT(vRecNums;0)
$ErrCode:=OP All records (vConnectID;$Server_Table)
$ErrCode:=OP Get record numbers (vConnectID;$Server_Table;vRecNums)
For ($k;1;Size of array(vRecNums))
$ErrCode:=OP Goto record (vConnectID;1;vRecNums{$k})
$ErrCode:=OP Is In Set (vConnectID;"SetA";vRecNums{$k};vBool)
If (vBool=1)
$ErrCode:=OP Remove From Set (vConnectID;$Server_Table;"SetNoA")
End if
End for
See Also