EsbOtlGetUserAttributes

メンバーのユーザー定義属性をすべて取得します。

構文

            EsbOtlGetUserAttributes
             (
            hOutline, hMember, pusCount
            )
ByVal 
            hOutline
             As Long
ByVal 
            hMember
              As Long 
      
            pusCount
             As Integer 
         
パラメータ説明

hOutline

アウトラインのコンテキスト・ハンドル。

hMember

ユーザー定義属性を取得するメンバーのハンドル。

pusCount

戻されるユーザー属性の数。ppAttributeList配列の要素数を定義します。

備考

戻り値

成功の場合、0が戻されます。

         Declare Function EsbOtlGetUserAttributes Lib 
"ESBOTLN" (ByVal hOutline As Long, ByVal hMember As Long,
pusCount As Integer) As Long 

Sub ESB_OtlGetUserAttributes()
Dim sts As Long
Dim Object As ESB_OBJDEF_T
Dim hOutline As Long
Dim hMember As Long
Dim AttributeList As String * ESB_MBRNAMELEN
Dim n As Integer
Dim Count As Integer
Object.hCtx = hCtx
Object.Type = ESB_OBJTYPE_OUTLINE
Object.AppName = "Sample"
Object.DbName = "Basic"
Object.FileName = "Basic"
sts = EsbOtlOpenOutline(hCtx, Object, ESB_YES,
ESB_YES, hOutline)
If sts = 0 Then
   sts = EsbOtlFindMember(hOutline, "Jan",
    hMember)
End If
If sts = 0 And hMember <> 0 Then
   '********************
   ' Get User Attributes
   '********************
   sts = EsbOtlGetUserAttributes(hOutline,
    hMember, Count)
End If
If sts = 0 And Count <> 0 Then
   For n = 1 To Count
   '********************************
   ' Get next User Attribute String
   ' from the list
   '********************************
   sts = EsbGetNextItem(hCtx,
    ESB_OTLUSERATTR_TYPE, ByVal AttributeList)
    Next
End If
End Sub
      

関連トピック