指定されたメンバーの式を取得します。
構文
EsbOtlGetMemberFormula
(
hOutline, hMember, pszFormula, usBufSize
)
ByVal
hOutline
As Long
ByVal
hMember
As Long
ByVal
pszFormula
As String
ByVal
usBufSize
As Integer
| パラメータ | 説明 |
|---|---|
hOutline |
アウトラインのコンテキスト・ハンドル。 |
hMember |
メンバーのハンドル。 |
pszFormula |
メンバーの式の戻り変数。バッファは呼出し元によって割り当てられ、長さはusBufSizeパラメータで指定されます。 |
usBufSize |
pszFormulaバッファのサイズ。 |
戻り値
成功の場合、0が戻されます。
例
Declare Function EsbOtlGetMemberFormula Lib
"ESBOTLN" (ByVal hOutline As Long, ByVal hMember
As Long, ByVal pszFormula As String, ByVal usBufSize
As Integer) As Long
Sub ESB_OtlGetMemberFormula()
Dim sts As Long
Dim Object As ESB_OBJDEF_T
Dim hOutline As Long
Dim hMemberProfit As Long
Dim szFormula As String * 100
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 = EsbOtlGetMemberFormula(hOutline,
hMemberProfit, szFormula, 100)
End If
End Sub
関連トピック