Microsoft KB Archive/913603

= How to perform simple mathematical functions in a Groove Forms tool =

Article ID: 913603

Article Last Modified on 11/7/2007

-

APPLIES TO


 * Groove Virtual Office 3.1 Professional Edition
 * Groove Virtual Office 3.1 Project Edition
 * Groove Virtual Office 3.0 Professional Edition
 * Groove Virtual Office 3.0 Project Edition
 * Groove Workspace 2.5 Project Edition
 * Groove Workspace 2.5 Professional Edition
 * Microsoft Office Groove 2007

-





INTRODUCTION
This article contains an example of how to perform simple mathematical functions in a Groove Forms tool in Microsoft Office Groove 2007 or in an earlier version of Groove.



MORE INFORMATION
To perform mathematical functions in a Forms tool programmatically, you may have to create event-driven methods in the Forms tool script code by using JavaScript. The following is a quick code example in JavaScript. This example multiplies the values in two form fields,  and. Additionally, the example assigns the resulting value to another field on the form, : 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 &quot;Result&quot; which is on the form. document.GrooveFormBase.Result.value = f3; } For detailed information about how to program for forms, see Developing with the Groove Forms Tool. Or, see the Groove Forms Development Library. To obtain the Groove Forms Development Library, visit the following Microsoft Web site:

http://grv.microsoft.com/help/default.htm

To obtain Developing with the Groove Forms Tool, visit the following Groove Web site:

http://www.groove.net/solutions/develop/docs/

Additional query words: TCN-02127

Keywords: kbhowto kbinfo kbexpertiseadvanced KB913603

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.