在公式中使用“&"号会导致“意外字符"的出现.错误 [英] Using Ampersand (&) in Formula Results in "Unexpected Character" error

查看:75
本文介绍了在公式中使用“&"号会导致“意外字符"的出现.错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试执行自定义操作,以在提交表单时追加标题字段,并使它现在可以正常工作,但是由于某些原因,如果我使用&运算符而不是+,它会导致错误.

有人知道为什么不将&符解释为运算符吗,或者在此语法中它是否无效?我使用在网上找到的另一个示例来制作了这个公式.


www.standardexcellence.net |俄克拉荷马州IT超级英雄

解决方案

您好,FoaRyan,

根据我的测试,&"在InfoPath公式中不是有效的运算符char.

您要在字段后附加标题吗?您可以使用 concat 功能来做到这一点.

关于在InfoPath中添加公式:

https://support.office.com/zh-CN/article/Add-a-formula-to-a-control-94303f5c-1562-4aaf-85fa-c6637c43ee33

有关InfoPath函数的更多信息,您可以参考:

http://www.bizsupportonline.net/infopath-functions-examples.htm

谢谢

温迪


I am attempting to perform a custom action to append the title field when a form is submitted, and have it working now, but for some reason if I use the & operator instead of the +, it results in an error.

Does anyone know why an ampersand isn't being interpreted as an operator, or if perhaps it is not valid in this syntax? I made this formula using another example I found online.


www.standardexcellence.net | Oklahoma IT Superhero

解决方案

Hi FoaRyan,

Per my test, '&' is not a valid operator char in InfoPath formula.

Do you want to append Title to a field? You can use concat function to do that.

About adding a formula in InfoPath:

https://support.office.com/en-us/article/Add-a-formula-to-a-control-94303f5c-1562-4aaf-85fa-c6637c43ee33

More information about InfoPath functions, you can refer to:

http://www.bizsupportonline.net/infopath-functions-examples.htm

Thanks,

Wendy


这篇关于在公式中使用“&"号会导致“意外字符"的出现.错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆