0
我想從一個嵌套函數(我使用filein()命令調用的函數來訪問卷展欄控件的狀態/值(複選框,旋轉等) ),但是我不斷收到rolout控件未定義的錯誤。Mxs:展開控制值沒有定義在範圍內(filein)
我已經寫了一些簡單的代碼來說明這個問題:
1)使用FILEIN命令,輸入文件的主要腳本:
Rollout exporter "Simple Exporter" width:300 height:610 (
button btn_do_stuff "Do stuff" pos:[18,14] width:116 height:60
checkbox some_option "some_option" pos:[18,100] width:116 height:60
on btn_do_stuff pressed do(
filein "printstuff.ms"
)
)
createdialog exporter
2)正在導入的腳本文件使用FILEIN()命令:
if some_option.checked == true then(
messagebox "some_option.checked == true"
)else(
"some_option.checked == false"
)
3)錯誤消息:
-- Unknown property: "checked" in undefined <<
錯誤發生在正在使用FILEIN導入的腳本文件的第一行:在下面的行發生錯誤 :
if some_option.checked == true then(
任何幫助,將不勝感激,謝謝!