Visual Basic使用時のインタフェースを、表にまとめて説明します。
利用者プログラムは表の機能を使用する場合、MeFtが提供するVisual Basicのサンプルプログラムにある標準モジュール(psdef.bas、psmac.bas)を参考に標準モジュールを作成してください。
分類 | 機能名 | インタフェース |
---|---|---|
ps_open (ByVal file As String, ByVal MOde As Integer, errcode As Integer, Opt As Any) As Long | ||
ps_write (ByVal file As Long, ByVal MOde As Integer, ByVal sGroup As String, record As Any, Opt As Any) As Integer | ||
ps_write_lineshift (ByVal file As Long, ByVal sGroup As Any, ByVal MOde As Integer, ByVal LINES As Integer, record As Any) As Long | ||
ps_write_partition (ByVal file As Long, byVal sGroup As Any, ByVal MOde As Integer, ByVal LINES As Integer, record As Any) As Long | ||
ps_read (ByVal file As Long, ByVal MOde As Integer, ByVal sGroup As Any, record As Any, Opt As Any) As Integer | ||
ps_close (ByVal file As Long, errcode As Integer) As Integer | ||
ps_set_formatsize (ByVal file As Long, ByVal sFormat As String, ByVal lRecSize As Long) As Integer | ||
ps_get_return_code (ByVal file As Long) As Integer | ||
Mid関数を使い項目制御部の1バイト目に設定します。 | ||
Mid関数を使い項目制御部の2バイト目に設定します。 | ||
Mid関数を使い項目制御部の3バイト目に設定します。 | ||
Mid関数を使い項目制御部の4バイト目に設定します。 | ||
Mid関数を使い項目制御部の4バイト目を参照します。 | ||
Mid関数を使い項目制御部の5バイト目に設定します。 | ||
Mid関数を使い項目制御部の5バイト目を参照します。 | ||
Mid関数を使い項目制御部の4バイト目に設定します。 | ||
Mid関数を使い項目制御部の5バイト目に設定します。 | ||
ps_get_attention (ByVal file As Long, ByVal Attn As String) As Integer | ||
ps_move_window_lc (ByVal file As Long, ByVal MOde As Integer, PPOINT As PSLCPOINT, PSIZE As PSLCSIZE) As Integer | ||
ps_move_window (ByVal file As Long, ByVal MOde As Integer, PPOINT As PSPOINT, PSIZE As PSSIZE) As Integer | ||
ps_handle_window (ByVal file As Long, ByVal MOde As Integer, ByVal Opt As Any) As Integer | ||
ps_get_caret_lc (ByVal file As Long, PPOINT As PSLCPOINT) As Long | ||
ps_set_caret_lc (ByVal file As Long, PPOINT As PSLCPOINT) As Long | ||
ps_modify_menu (ByVal file As Long, ByVal MOde As Integer, NUM As Integer, PATTN As Any) As Long | ||
ps_buzzer (ByVal file As Long, ByVal MOde As Integer) As Long | ||
ps_get_window (ByVal file As Long, opt As Any) As Long | ||
ps_register_attention (ByVal file As Long, ByVal Atten As Long) As Long | ||
ps_enable_attention (ByVal file As Long, ByVal MOde As Integer, ByVal NUM As Integer, MASK As Any) As Long | ||
ps_clear_media (ByVal file As Long, ByVal MOde As Integer, ByVal sgroup As String, record As Any, opt As Any) As Integer | ||
ps_cancel_read (ByVal whndl As Long, opt As Any) As Integer | ||
ps_control_printer (ByVal file As Long, ByVal MOde As Integer, ByVal DETAIL As Integer, Opt As Any) As Long | ||
ps_set_overlay (ByVal file As Long, ByVal i As Integer, ovdn As Any) As Long | ||
ps_dectolong (ByVal MOde As Integer, ByVal indata As String, ByVal length As Integer) As Long ps_dectodouble (ByVal MOde As Integer, ByVal indata As String, ByVal length As Integer, ByVal frac As Integer) As Double ps_longtodec (ByVal indata As Long, ByVal MOde As Integer, ByVal outdata As String, ByVal length As Integer) As Integer ps_doubletodec (ByVal indata As Double, ByVal MOde As Integer, ByVal outdata As String, ByVal length As Integer, ByVal frac As Integer) As Integer | ||
ps_exec (ByVal pCmdLine As String, opt As Any) As Integer |
例
項目制御部の設定記述例
Mid(HELPMED.HBODY(i).UNAME_CTRL, 4, 1) = PS_STATUS_SELECTED Mid(DENPYOUD.DBODY(cnt).UNAME_CTRL, 5, 1) = PS_CURSOR_SETCURSOR
注意
Visual Basicのアプリケーションで英数字日本語混在項目を使用する場合は有効データ長なしでデータを扱ってください。帳票定義体ならば「有効データ長なし」を指定してください。ウィンドウ情報ファイルのMIXLENG(英数字日本語混在項目のデータ長の有無)およびプリンタ情報ファイルのMIXLENG(英数字日本語混在項目のデータ長の有無) の指定には「データ長を付加しない」を指定してください。
Visual Basicのアプリケーションで項目制御部を使用する場合、FORMで画面帳票定義体を作成するときに項目制御部を「共有しない」(5バイト)で定義してください。