遍历字段中的每条记录并修剪空白

德威罗尼

我正在尝试使用以下脚本将字段中的每个值替换为其Trim本身med版本。该脚本运行良好,但是之后导出所有记录,仍然看到空白-我丢失了什么吗?

Go to Record/Request/Page [First]
Loop
    Exit Loop If [Let($c=$c+1;$c>Get(FoundCount))]
    Set Field [MyDataBase::MyField; Trim ( MyDataBase::MyField )]
    Commit Records/Requests [With dialog:On]
End Loop
德威罗尼

想通了-我Go to Record/Request/Page [ Next ]在循环中遗漏了一个内部。最终的工作代码是:

Go to Record/Request/Page [First]
Loop
    Exit Loop If [Let($c=$c+1;$c>Get(FoundCount))]
    Set Field [MyDataBase::MyField; Trim ( MyDataBase::MyField )]
    Commit Records/Requests [With dialog:On]
    Go to Record/Request/Page [ Next ]
End Loop

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章