EsbSetFilterList

フィルタに割り当てられたグループまたはユーザーのリストを設定します。Itemsパラメータはフィルタに割り当てられたグループまたはユーザーの数を制御します。Itemsがゼロの場合、グループまたはユーザーのすべてがリストから削除されます。

構文

            EsbSetFilterList
             (
            hCtx, AppName, DbName, FltName, UserList, Items
            )
ByVal 
            hCtx
                 As Long
ByVal 
            AppName
              As String
ByVal 
            DbName
               As String
ByVal 
            FltName
              As String
ByVal 
            UserList
             As String
ByVal 
            Items
                As Integer
         
パラメータ説明

hCtx

VB APIコンテキスト・ハンドル。

AppName

アプリケーション名。

DbName

データベース名。

FltName

フィルタ名。

UserList

ユーザー名の文字列(CR、EOLで区切られる)の長さは、64KB未満である必要があります。

Items

文字列内のユーザー名の数。

戻り値

なし。

アクセス

この関数を使用するには、指定したデータベースに対して、呼出し元がデータベース・デザイン権限(ESB_PRIV_DBDESIGN)を持っている必要があります。

         Declare Function EsbSetFilterList Lib "ESBAPIN" (ByVal hCtx As Long, ByVal AppName As String, ByVal DbName As String, ByVal FltName As String, ByVal UserList As String, ByVal Items As Integer) As Long

Sub ESB_SetFilterList ()
   Dim sts As Long
   Dim AppName As String
   Dim DbName As String
   Dim FilterName As String
   Dim UserList As String
   Dim Items As Integer   AppName = "Sample"
   DbName = "Basic"
   FilterName = "Filter"
   '******************************
   ' Initialize UserList and Items
   '****************************** 
   Items = 2
   UserList = "Admin"+Chr$(13)+Chr$(10)+"Truc" 
   '****************
   ' Set Filter List
   '****************
   sts = EsbSetFilterList (hCtx, AppName, DbName,
   FilterName, UserList, Items) 
End Sub
      

関連トピック