在数字编辑框中按回车键后启用按钮框我有以下窗口:

我想要做的是在上面的“数字编辑”窗口按下回车键后启用“选择要导入的数据”按钮。
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>回复:在数字编辑框按下回车键后启用按钮框将此表达式包含在您为数字列框定义的函数中。
bboxImp << Enable( 1 );
回复:在数字编辑框按下回车键后启用按钮框我相信马克指的是“数字编辑框”而不是“数字列框”。
回复:在数字编辑框按下回车键后启用按钮框您走在正确的轨道上。您只需要检查数字编辑框的值作为函数的一部分。这是一个可以应用于脚本的简单示例。如果数字编辑框返回到缺失值,下面的函数也会禁用该按钮。
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 )