日期日曆框我正在嘗試製作一個運行趨勢的 jmp 應用程序。 我有兩個帶有“從”和“到”日期的日曆框。 當我單擊“運行腳本”按鈕時,我希望能夠使用日曆框中定義的日期來選擇趨勢中的日期。 如何從日曆框中獲取值以在腳本中使用?

腳本回复:日期日曆框在我發布這個問題後,我立即想到了這一點!
這就是我所做的
NumberEdit1< NumberEdit2<
顯示(SD);
開始日期=格式(SD,“ddMonyyyy”);
顯示(編輯);
結束日期=格式(編輯,“ddMonyyyy”);
回复:日期日曆框嘗試這樣的事情:
nw = new window("Test Dates", << modal(),
Lineup Box( N Col( 2 ),
text box("Enter start date: "),
start_neb = number edit box(today(), << Set Format( Format( "ddMonyyyy", 10))),
text box("Enter end date: "),
end_neb = number edit box(today(), << Set Format( Format( "ddMonyyyy", 10))),
),
ok_button = button box("OK",
startdate = start_neb << get;
enddate = end_neb << get;
)
);
print(format(startdate, "ddMonyyyy" ), format(enddate, "ddMonyyyy" ));

從日誌:
"11Apr2022"
"24Apr2022"
回复:日期日曆框沒有意識到您正在使用日曆框。試試這個:
nw = new window("Test Dates", << modal(),
text box("Monitoring & Trending"),
hlistbox(
panelbox("From Date",
cal_start = calendar box(<< Show Time( 0 )),
),
panelbox("To Date",
cal_end = calendar box(<< Show Time( 0 )),
),
),
ok_button = button box("OK",
startdate = cal_start << get date;
enddate = cal_end << get date;
)
);
print(format(startdate, "ddMonyyyy" ), format(enddate, "ddMonyyyy" ));
回复:日期日曆框你可能會喜歡使用日曆框選擇日期範圍
鏈接的日曆框