数値編集ボックスで Enter キーを押した後にボタン ボックスを有効にする次のようなウィンドウがあります:

私がやろうとしているのは、上記の数値編集ウィンドウで Enter キーを押した後に、「インポートするデータを選択」ボタンを有効にすることです。
docId = "xxxxxx";
WidthDescripWin = 500;
init_value =31;
win = New Window("Landing page for study evaluation add-in",
<<ON close=""></ON>the way that I am trying to do that without success is using the following piece of code:
where the enter_row_start() function just has the enable command.
Is it possible to do that?<BR />what am I doing wrong?
<LINGO-LABS id="lingo-labs-797767" slang="en-US" mode="UPDATE"><LINGO-LABEL>自動化とスクリプト</LINGO-LABEL><LINGO-LABEL>基本的なデータ分析とモデリング</LINGO-LABEL><LINGO-LABEL>データアクセス</LINGO-LABEL></LINGO-LABS>Re: 数値編集ボックスで Enter キーを押した後にボタン ボックスを有効にする数値列ボックスに対して定義した関数にこの式を含めます。
bboxImp << Enable( 1 );
Re: 数値編集ボックスで Enter キーを押した後にボタン ボックスを有効にするマークが言及していたのは「数値列ボックス」ではなく「数値編集ボックス」だったと思います。
Re: 数値編集ボックスで Enter キーを押した後にボタン ボックスを有効にする正しい方向に進んでいます。関数の一部として数値編集ボックスの値をチェックするだけです。以下はスクリプトに適用できる簡単な例です。以下の関数は、数値編集ボックスが欠損値に戻った場合にもボタンを無効にします。
names default to here( 1 );
nw = new window( "Test Window",
panel box( "Instructions",
text box( "1. Input number \!r2. Press Enter \!r3. Press Run Analysis" )
),
panel box( "Data Entry",
h list box(
text box( "enter a number and hit Enter on your keyboard" ),
NEB = number edit box( ., << set function(
function( { thisBox },
if(
!is missing( thisBox << get ), bb1 << enable(1),
is missing( thisBox << get ), bb1 << enable(0)
)
)
))
)
),
panel box( "Actions",
h list box(
bb1 = button box( "Run Analysis" ),
button box( "End Analysis" )
)
)
);
bb1 << enable( 0 )