Comments are sections of code that FormCalc does not execute. Typically comments contain information or instructions that explain the use of a particular fragment of code. FormCalc ignores all information stored in comments at run time.
;
//
// This is a type of comment
First_Name=”Tony”
Initial=”C” ;This is another type of comment
Last_Name=”Blue”
Commenting all of the FormCalc calculations for a particular event generates an error when you preview your form in the Preview PDF tab or when you view the final PDF. Each FormCalc calculation is required to return a value, and FormCalc does not consider comments to be values.
// First_Name=”Tony”
// Initial=”C”
// Last_Name=”Blue”
//
// The simple expression below sets the value of the event to zero.
0
An assignment expression that retains the value of the object. Use this type of expression if your commented FormCalc code is located on the calculate event to prevent the actual value of the object from being altered, as shown in the following example:
// First_Name=”Tony”
// Initial=”C”
// Last_Name=”Blue”
//
// The assignment expression below sets the value of the current
// field equal to itself.
$.rawValue = $.rawValue

Comments