![]() |
Adding Contents Of Empty Field Returns 1+1+1. |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Symptoms: The customer has a secondary merge file containing one record with forty fields. The customer would like to add the contents of Fields 1 through 7 by using {ASSIGN}tmp~{Field}1~+{Field}2~+{Field}3~+...+{Field}7~~. This works fine as long as all the fields contain a number, but if a field is blank, the result is 1+1+1+1+1+1. Solutions: If one of the fields is blank, WP will interpret the entire expression as a string instead of a numeric value. Using a "0" instead of leaving the field blank will cause WP to treat the expression as a numeric value. How/Why: A blank field is a null string. The expression handler treats null strings as strings instead of "0". |
Answer:
Details:
Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER. |