|

楼主 |
发表于 2023-10-25 18:52:50
|
显示全部楼层
广东省潮州市
b0y 发表于 2023-10-25 18:39
[/quote ]可以可以,我刚好自己解决了,你的这个也能参考参考 [e=2 ].版本 2 间隔 = 时间_取时间间隔 (到时间 (文本_替换 (文本_删右边 (到文本 (取现行时间 ()), 9 ), , , , “年”, “-”, “月”, “-”, , , , , , )), 到时间 (编辑框1.内容 )) 如果真 (间隔 = “”) 编辑框2.内容 = “今天” 如果真 (间隔 = “23时59分59秒”) 编辑框2.内容 = “明天” 如果真 (间隔 = “1天23时59分59秒”) 编辑框2.内容 = “后天” 如果真 (间隔 ≠ “” 且 间隔 ≠ “23时59分59秒” 且 间隔 ≠ “1天23时59分59秒”) 编辑框2.内容 = 文本_替换 (时间_取中国星期几 (到时间 (编辑框1.内容 )), , , , “星期”, “周”, , , , , , , , )
可以可以,我刚好自己解决了,你的这个也能参考参考
[e=2].版本 2
.子程序 _按钮1_被单击
.局部变量 间隔, 文本型
.局部变量 星期, 文本型
间隔 = 时间_取时间间隔 (到时间 (文本_替换 (文本_删右边 (到文本 (取现行时间 ()), 9), , , , “年”, “-”, “月”, “-”, , , , , , )), 到时间 (编辑框1.内容))
.如果真 (间隔 = “”)
编辑框2.内容 = “今天”
.如果真结束
.如果真 (间隔 = “23时59分59秒”)
编辑框2.内容 = “明天”
.如果真结束
.如果真 (间隔 = “1天23时59分59秒”)
编辑框2.内容 = “后天”
.如果真结束
.如果真 (间隔 ≠ “” 且 间隔 ≠ “23时59分59秒” 且 间隔 ≠ “1天23时59分59秒”)
编辑框2.内容 = 文本_替换 (时间_取中国星期几 (到时间 (编辑框1.内容)), , , , “星期”, “周”, , , , , , , , )
|
|