指定されたメンバーの情報を取得します。
構文
EsbOtlGetMemberInfo
(
hOutline, hMember, pInfo
)
ByVal
hOutline
As Long
ByVal
hMember
As Long
pInfo
As ESB_MBRINFO_T
| パラメータ | 説明 |
|---|---|
hOutline |
アウトラインのコンテキスト・ハンドル。 |
hMember |
メンバーのハンドル。 |
pInfo |
メンバー情報の構造体の戻り変数。この構造体は呼出し元によって割り当てられます。 |
備考
メンバーのハンドルはEsbOtlFindMember()を呼び出すことによって取得できます。
ESB_MBRINFO_T構造体の次の2つのフィールドは属性専用です:
Attribute
IsAttributed
戻り値
成功の場合、0が戻されます。
例
Declare Function EsbOtlGetMemberInfo Lib
"ESBOTLN" (ByVal hOutline As Long, ByVal hMember
As Long, pInfo As ESB_MBRINFO_T) As Long
Sub ESB_OtlGetMemberInfo()
Dim sts As Long
Dim Object As ESB_OBJDEF_T
Dim hOutline As Long
Dim MbrInfo As ESB_MBRINFO_T
Dim hMemberProfit As Long
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, "Profit",
hMemberProfit)
End If
If sts = 0 And hMemberProfit <> 0 Then
sts = EsbOtlGetMemberInfo(hOutline, hMemberProfit,
MbrInfo)
End If
End Sub
関連トピック