Top Navigational Bar

ONCANCEL Macro Command Doesn't Affect Macro
DocumentID: 614452
Revision Date: 29-Feb-96 1:36:30 PM

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

Problem

Symptoms: The ONCANCEL command does not affect a macro if the macro is displaying a dialog box. The dialog box has the focus and the macro is in an inactive state. Pressing or clicking on Cancel will dismiss the dialog box and the macro will continue. Solutions: If the user wants to trap the Cancel condition, they can use an IF statement after the dialog box similar to this:
IF(?DialogControl=-1)
ASSERT(CancelCondition!)
ENDIF

This tells the macro designer when the user chooses Cancel at the dialog box. It then asserts a Cancel condition and the ONCANCEL kicks in.

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.