EsbOtlGetPrevSibling

メンバーの前の兄弟を戻します。

構文

            EsbOtlGetPrevSibling
             (
            hOutline, hMember, phMember
            )
ByVal 
            hOutline
             As Long
ByVal 
            hMember
              As Long
      
            phMember
             As Long
         
パラメータ説明

hOutline

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

hMember

前の兄弟を取得するメンバーのハンドル。

phMember

hMemberパラメータの前の兄弟のハンドルの戻り変数。

備考

戻り値

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

         Declare Function EsbOtlGetPrevSibling Lib 
"ESBOTLN" (ByVal hOutline As Long, ByVal hMember As Long,
phMember As Long) As Long

Sub ESB_OtlGetPrevSibling()
Dim sts As Long
Dim Object As ESB_OBJDEF_T
Dim hOutline As Long
Dim hChild As Long
Dim hPrevSibling 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", hChild) 
End If
If sts = 0 And hChild <> 0 Then
   sts = EsbOtlGetPrevSibling(hOutline, hChild, hPrevSibling)
End If
End Sub
      

関連トピック