INTRODUCTION本文包含有關(guān)如何在 Groove 表單工具在 Microsoft Office Groove 2007年或 Groove 的早期版本中執(zhí)行簡單的數(shù)學(xué)函數(shù)的示例。
更多信息要編程, 窗體工具中執(zhí)行數(shù)學(xué)函數(shù)可能必須通過使用 JavaScript 來表單工具腳本代碼中創(chuàng)建事件驅(qū)動(dòng)方法。 以下是 JavaScript 中快速代碼示例。 本示例在兩個(gè)表單字段, f 2 f 1 和值相乘。 此外, 本示例將該結(jié)果值賦給表單, 結(jié)果 上其他域:
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; }
|
|站長郵箱|小黑屋|手機(jī)版|Office中國/Access中國
( 粵ICP備10043721號(hào)-1 )
GMT+8, 2025-7-13 08:09 , Processed in 0.062298 second(s), 16 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.