![]() |
Function Called As A Procedure |
The information in this document applies to:
WordPerfect® 6.0 for DOS
Problem
Symptoms: The following simple macro: USE("LIBRARY.WPM") FileExists("C:\FILES";"TROY.TST") Causes an error message "Function Called As A Procedure" Solutions: The macro lines should look similar to this: USE("LIBRARY.WPM") x:= FileExists ("C:\FILES";"TROY.TST") Type (x) Causes: Functions in WPDOS6.x return values. These returned values need to assigned to a variable or be used as an expression, or part of an expression, of another command. Examples: To a variable x:= FileExists ("C:\FILES";"TROY.TST") In Expression IF ( FileExists ("C:\FILES";"TROY.TST")) NOTE: FileExists () is contained in LIBRARY.WPM. To use this function the macro must contain the line: USE ("LIBRARY.WPM") |
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. |