officeba > 单独文章


如何 Groove 表单工具中执行简单的数学函数

INTRODUCTION

本文包含有关如何在 Groove 表单工具在 Microsoft Office Groove 2007年或 Groove 的早期版本中执行简单的数学函数的示例。

更多信息

要编程, 窗体工具中执行数学函数可能必须通过使用 JavaScript 来表单工具脚本代码中创建事件驱动方法。 以下是 JavaScript 中快速代码示例。 本示例在两个表单字段, f 2 f 1 和值相乘。 此外, 本示例将该结果值赋给表单, 结果 上其他域:
function multButton_onClick()   //Function is called when the multiplication script button is clicked. {  //First operand and second operand are unformatted number fields on a form.  var f1=document.GrooveFormBase.FirstOperand.value; var f2=document.GrooveFormBase.SecondOperand.value;  //Temporarily store result of multiplication. var f3 = f1* f2;   //Assign the value in f3 to an unformatted number field "Result" which is on the form. document.GrooveFormBase.Result.value = f3; } 

声明:欢迎各大网站转载本站文章,还请保留一条能直接指向本站的超级链接,谢谢!

时间:2007-05-18 09:19:59,点击:65824


【OfficeBa论坛】:阅读本文时遇到了什么问题,可以到论坛进行交流!Excel专家邮件:342327115@qq.com(大家在Excel使用中遇到什么问题,可以咨询此邮箱)。

【声明】:以上文章或资料除注明为Office自创或编辑整理外,均为各方收集或网友推荐所得。其中摘录的内容以共享、研究为目的,不存在任何商业考虑。如有任何异议,请与本站联系,本站确认后将立即撤下。谢谢您的支持与理解!


相关评论

我要评论

评论内容