You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

ブラウザーのプロンプトダイアログを表示します。
Webアプリケーション (PRIM_WEB.Application) のメンバ

パラメータ

名前

タイプ

データタイプ

記述

Caption

*Input

Unicode 文字列

ダイアログに表示するテキスト

Value

*Both

Unicode 文字列

ダイアログの入力ボックスの値

ResultCode

*Result (任意)

列挙

ダイアログで押されたボタン

詳細


Prompt メソッドは、 JavaScript Prompt 関数へのアクセスを提供します。
プロンプトでは、指定された Caption が Value パラメータに入力されたものを返します。
Prompt は JavaScript 機能を使用します。正確な実装方法はブラウザにより異なります。


Prompt メソッドの使用を示す簡単な例。
Begin_Com Role(*EXTENDS #PRIM_WEB)
Define_Com Class(#PRIM_PHBN) Name(#Prompt) Caption('Prompt') Displayposition(1) Left(16) Parent(#COM_OWNER) Tabposition(1) Top(14) Width(193)
Evtroutine Handling(#Prompt.Click)
#xDemoAlpha128 := "Enter a value here"
If (#sys_web.Prompt( "Prompt for something" #xDemoAlpha128 ) = OK)
#Prompt.Caption := ("Reply &1").substitute( #xDemoAlpha128 )
Else
#Prompt.Caption := "Prompt cancelled"
Endif
Endroutine
End_Com

参照

すべてのコンポーネント クラス
テクニカルリファレンス

  • No labels