指定されたメンバーの式を削除します。
構文
EsbOtlDeleteMemberFormula
(
hOutline, hMember
)
ByVal
hOutline
As Long
ByVal
hMember
As Long
| パラメータ | 説明 |
|---|---|
hOutline |
アウトラインのコンテキスト・ハンドル。 |
hMember |
メンバーのハンドル。 |
戻り値
正常終了の場合は0が戻されます。それ以外の場合は、次のいずれかの値が戻されます:
OTLAPI_ERR_NOFORMULA
例
Declare Function EsbOtlDeleteMemberFormula Lib
"ESBOTLN" (ByVal hOutline As Long,
ByVal hMember As Long) As Long
Sub ESB_OtlDeleteMemberFormula()
Dim sts As Long
Dim Object As ESB_OBJDEF_T
Dim hOutline As Long
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 = EsbOtlDeleteMemberFormula(hOutline, hMemberProfit)
End If
End Sub
関連トピック