EsbDefaultCalc

アクティブ・データベースのデフォルト計算を実行します。

構文

            EsbDefaultCalc
             (
            hCtx
            )
ByVal 
            hCtx
             As Long
         
パラメータ説明

hCtx

VB APIコンテキスト・ハンドル。

備考

戻り値

なし。

アクセス

この関数を使用するには、呼出し元はアクティブなデータベースに対して計算権限(ESB_PRIV_CALC)を持っている必要があります。

         Declare Function EsbDefaultCalc Lib "ESBAPIN" (ByVal hCtx As Long) As Long

Sub ESB_DefaultCalc ()
   Dim sts As Long
   Dim ProcState As ESB_PROCSTATE_T   '************************
   ' Run default calc script
   '************************
   sts = EsbDefaultCalc (hCtx)   '************************************
   ' Check process state till it is done 
   '************************************
   sts = EsbGetProcessState (hCtx, ProcState)
    Do Until ProcState.State = ESB_STATE_DONE 
      sts = EsbGetProcessState (hCtx, ProcState)
   Loop 
End Sub
      

関連トピック