以下是引用fyyylyl在2023-5-31 11:18:40的发言:
REPLACE ALL xh1 WITH Xh*2-IIF(Xh%4=0,4,Xh%4),Xh2 WITH Xh*2-IIF(Xh%4=0,4,Xh%4)+IIF(BETWEEN(Xh%4,1,2),6,2)
正解
Xh2 WITH Xh*2-IIF(Xh%4=0,4,Xh%4)+IIF(BETWEEN(Xh%4,1,2),6,2)
可以简化为
Xh2 WITH Xh1+IIF(BETWEEN(Xh%4,1,2),6,2)
[此贴子已经被作者于2023-5-31 12:25编辑过]