日期日历框我正在尝试制作一个运行趋势的 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" ));
回复:日期日历框你可能会喜欢使用日历框选择日期范围
链接的日历框