OBJECT SET ACTIONコマンドは、引数 object と * で指定したオブジェクトと関連付けられた標準アクションを、カレントプロセスにおいて変更します。
注: 標準アクションはデザインモードからプロパティリストを使用することによって設定することも可能です。
任意の * 演算子を渡した場合、 object 引数でオブジェクト名を文字列で指定します。省略時には object 引数でフィールドまたは変数を指定します。
action 引数には、オブジェクトと関連付けたい標準アクションを表すコードを文字列で渡します。 "関連付けられた標準アクションのテキスト値" テーマ内にある、以下の定数のどれか一つを渡すことができます。
| 定数 |
型 |
値 |
| Object Accept action |
文字列 |
2 |
| Object Add subrecord action |
文字列 |
14 |
| Object Automatic splitter action |
文字列 |
16 |
| Object Cancel action |
文字列 |
1 |
| Object Clear action |
文字列 |
21 |
| Object Copy action |
文字列 |
19 |
| Object Cut action |
文字列 |
18 |
| Object Database Settings action |
文字列 |
32 |
| Object Delete record action |
文字列 |
7 |
| Object Delete subrecord action |
文字列 |
13 |
| Object Edit subrecord action |
文字列 |
12 |
| Object First page action |
文字列 |
10 |
| Object First record action |
文字列 |
5 |
| Object Goto page action |
文字列 |
15 |
| Object Last page action |
文字列 |
11 |
| Object Last record action |
文字列 |
6 |
| Object MSC action |
文字列 |
36 |
| Object Next page action |
文字列 |
8 |
| Object Next record action |
文字列 |
3 |
| Object No standard action |
文字列 |
0 |
| Object Open back URL action |
文字列 |
37 |
| Object Open next URL action |
文字列 |
38 |
| Object Paste action |
文字列 |
20 |
| Object Previous page action |
文字列 |
9 |
| Object Previous record action |
文字列 |
4 |
| Object Quit action |
文字列 |
27 |
| Object Redo action |
文字列 |
31 |
| Object Refresh current URL action |
文字列 |
39 |
| Object Return to Design mode action |
文字列 |
35 |
| Object Select all action |
文字列 |
22 |
| Object Show Clipboard action |
文字列 |
23 |
| Object Stop loading URL action |
文字列 |
40 |
| Object Test Application action |
文字列 |
26 |
| Object Undo action |
文字列 |
17 |
ボタンの標準アクションをOKに設定したい場合、以下のように記述します: