Top Navigational Bar

Macro Example: Mark File In File List, Add Fi
DocumentID: 621056
Revision Date: 29-Feb-96 1:39:32 PM

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

Problem

Solutions: This macro goes into the file list and lets the user mark a file with an asterisk. When a file is marked, the filename is placed in an array.

      mark:=1      x:=1
      DLGINPUT(On!)
      FileListDlg
      WHILE(mark<>-8182)                  //Do until enter is pressed
            CHAR(mark)
            IF((NTOC(mark)="*") OR mark=32)      //If pressed * or space
                  files[x]:=?Entry
                  x:=x+1
            ENDIF
            Type(NTOC(mark))
            IF(?Dialog<>8)                  //Break loop if not in FileListDlg
                  BREAK
            ENDIF
      ENDWHILE
      WHILE(?EditScreen=0) CancelKey ENDWHILE
            files[0]:=x-1
      DLGCREATE(var1)
      DLGCONTROL(CtrlList!;files)
      DLGEND

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.