Top Navigational Bar

Macro Example For Returning Current Display M
DocumentID: 621044
Revision Date: 29-Feb-96 1:39:33 PM

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

Problem

Solutions: The following macro is used to return the current display mode information. This macro returns a 1 if WP is in Text Mode, 2 if WP is in Graphics Mode, or 3 if WP is in Page Mode.

      FUNCTION ScreenMode()
            LOCAL(page;graphics;text)
            DLGINPUT(On!)
            RewriteKey
            BackTab BackTab BackTab BackTab
            page:=?Entry            BackTab
            graphics:=?Entry      BackTab
            text:=?Entry            CancelKey
            SWITCH(1)
                  CASEOF text:            RETURN(1)
                  CASEOF graphics:      RETURN(2)
                  CASEOF page:            RETURN(3)
            ENDSWITCH
      ENDFUNC

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.