<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />数値編集ボックスがあり、何も指定されていない場合、変数にデフォルト値を割り当て、メッセージを表示したいと考えています。 何も指定されていない場合 (ユーザーがナンバー ボックスに何も入力しなかったことを意味します)、デバッガーの「ウォッチ」ウィンドウで変数を表示すると、値が「.」のように見えます。しかし、一致するものを取得できませんでした (以下のスクリプトを参照してください):
stepSize = 10;New Window( "", < V List Box( Panel Box( "Please specify", H List Box( Text Box( "Step " ), tBox = Number Edit Box( defaultStepSize ), Button Box( "OK", stepSize = tBox << Get; ) ) ) ) );If( stepSize == "." | stepSize == 0 | !Is Number( stepSize ) | stepSize == "" | Is Empty(stepSize), stepSize = 10; Beep(); New Window( "No Step Specified", < H List Box( Text Box( "Either No Step or 0 was specified! Will use the default of 10!" ), Button Box( "OK" ) ) ););
何も指定しない場合の Number Edit Box の戻り値は?
ありがとう。 ドキュメンテーションで利用可能なすべての「IsWhatever」を試したと思っていたので、「IsMissing」を見逃したとは信じられません。 笑。
If( ismissing(stepSize) == 1 | | stepSize == 0 | | !Is Number( stepSize ) | stepSize == "" | |空です(stepSize)、