例: ユーザーへのメッセージを作成する

  1. 次の例は、ダイアログボックスでタイトルとして使用する文字列定数と、文字列式を作成します。文字列式は、文字列に変換した日付/時刻値と文字列定数を連結したものになります。
    @Prompt([Ok]; "Current time and date"; "The date is " + @Text(@Now; "D0S0") + ". " + "The time is " + @Text(@Now; "T0S1") + ".")
  2. 次の例は、ダイアログボックスのタイトルとして使用する文字列定数を作成します。ボックスの内容は、文字列定数の後に複数値フィールドの値を続けたものになります。
    @Prompt([OkCancelList] : [NoSort]; "Field offices"; "Current field offices are located in the following cities:"; ""; Field_offices)
  3. 次のコードをフォームの postsave イベントに追加した場合、最終変更日が 1 月 1 日で [date] フィールドに関数 @Modified が含まれているとすると、ステータスバーに「Saving with a modification date of 1/1/2001 01:38:11 PM」と表示されます。
    @StatusBar("Saving with a modification date of " + date)
  4. 次のコードをフォームの postopen イベントに追加した場合、Maria Rose がフォームを Notes® クライアントで開いたときに、フォームの末尾にあるステータスバーに「You are creating a self-evaluation for Maria Rose」と表示されます。
    @StatusBar("You are creating a self-evaluation for " + @Name([CN];@V3UserName))