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

Compare with Current View Page History

Version 1 Next »

[ |../../index.htm#lansa/l4wdev07_0185.htm]
現在地:
ステップ7. 戻り値の取得
DialogオブジェクトのShowメソッドには、TimeOutおよび戻り値であるShow_RETVALの、2つのパラメータがあります。

戻り値は、OKボタンが押された場合は1、Cancelボタンが押された場合は0になります。次に、保存ダイアログボックスでOKボタンが押された場合にメッセージを表示するコード例を示します。
invoke method(#WordApp.Dialogs.item<VA_WORD.wdDialogFileSaveAs>.show) SHOW_Retval(#std_num);
if cond('#std_num *ne 0');
execute infmessage 'Document has been saved.';
endif;
 
[ |../../index.htm#lansa/l4wdev07_0185.htm]

  • No labels