嘿大家,
我是JSL的新手,我在這裡嘗試做什麼:
打開新窗口 - >
輸入項目ID - >單擊“確定”按鈕 - >
找到該項目文件(excel) - >在該excel文件中查找註釋
但是,我被困在早期階段使用按鈕“OK”提取TEXT EDIT BOX
我嘗試谷歌它,但我能找到的只是使用基本模態框。
如果有人可以幫助,將不勝感激:)

以下是錯誤消息:
無法下標顯示框訪問或評估'下標',w [/ * ### * /“按鈕”] == 1,
您所遵循的結構適用於Modal窗口。 這是一個我相信更符合你想要的例子。 您應該花時間閱讀“腳本編寫指南”。
幫助==>圖書==>腳本指南
Names Default To Here( 1 );
w = New Window( "Data and Limits file",
Border Box( top( 55 ), bottom( 55 ), Left( 66 ), Right( 66 ),
V List Box(
H Center Box( Text Box( "Locate item" ) ),
Spacer Box( size( 1, 11 ) ),
H List Box( Text Box( "item ID: " ), D = Text Edit Box( Char( " 6 DIGITS" ) ), ),
Spacer Box( size( 1, 11 ) ),
Text Box( "Click SHOW for the ERROR MSG(S)" ),
Button Box( "OK",
id = D << get text();
str = "S:\dir path\" || id || ".xls";
str_x = "S:\dir path\" || id || ".xlsx";
If(
File Exists( str ), Show( "found " || str ),
File Exists( str_x ), Show( "found " || str_x ),
Show( "neither file found" )
);
w << close window;
),
Spacer Box( size( 1, 11 ) ),
Spacer Box( size( 1, 33 ) ),
H Center Box( Text Box( "Error Code | Messages(S)" ) ),
Spacer Box( size( 1, 11 ) ),
),
)
);