在數位編輯框中按 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>回覆:在數字編輯框中按 Enter 後啟用按鈕框將此表達式包含在您為數字列框定義的函數中。
bboxImp << Enable( 1 );
回覆:在數字編輯框中按 Enter 後啟用按鈕框我相信馬克指的是「數位編輯框」而不是「數字列框」。
回覆:在數字編輯框中按 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 )