OP Remove From Set

4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next

version 6.0.6


OP Remove From Set (connectID; tableID; setName) Longint

ParameterTypeDescription
connectIDLongintUnique ID for the established connection
tableIDIntegerID of the table
setNameStringName of the set
Function resultLongintError 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

OP Add To Set, OP Is In Set.


4D - Documentation   Français   English   German   4D Open for 4D, Command Theme List   4D Open for 4D, Command Alphabetical List   Back   Previous   Next