ENTER-QUERY Mode

来源:互联网 发布:看股票行情用什么软件 编辑:程序博客网 时间:2024/05/21 07:09
SYSTEM.MODE indicates whether the form is in Normal, Enter Query, or Fetch Processing mode. The value is always a character string.

* NORMAL - Indicates that the form is currently in normal processing mode.

* ENTER-QUERY - Indicates that the form is currently in Enter Query mode.

* QUERY - Indicates that the form is currently in fetch processing mode, meaning th

1.After pressing F11, Then system will switch to ENTER-QUERY mode.

2.If you hit Ctrl+F11, system will execute query,and retrieve records to you,system mode will turn back to 'NORMAL'




Sample Code for enter query:

Consider the following When-Button-Pressed trigger for the Query button.If the operator clicks the button in Normal mode, the trigger places the form in Enter-Query mode (using the ENTER_QUERY built-in). Otherwise, if already in Enter-Query mode, the button executes the query (using the EXECUTE_QUERY built-in).

IF :SYSTEM.MODE = 'NORMAL' THEN
  ENTER_QUERY;
ELSE
  EXECUTE_QUERY;
END IF;


原创粉丝点击