Top Navigational Bar

MID Command -- No Error Condition Returned
DocumentID: 635553
Revision Date: 29-Feb-96 3:03:55 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Symptoms: If you use the MID command in a macro to name a variable that does not have an existing value, no error condition is returned. Solutions: A workaround is to use the IF EXISTS command before the MID command to check if the variable has a value. If the offset count returned, however, is larger than it actually is, an error condition is returned. These conditions can be directed with the use of the ON ERROR command.

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.