Which Clarion 6.3 template looks up a DOS file or directory from a button?

Applies to: an app in Clarion 6.3, as the poster wrote it in the Clarion 6 group; the thread names no template chain.

Problem

The poster had to add a function to a Clarion 6.3 app and asked whether a template exists that looks up a DOS file or a directory on a button.

Solution

  1. Use the DOS File Lookup control template. A reply pointed to the help topic "DOS File Lookup control template".
  2. Or code it yourself: create a button, and in its TakeAccepted embed call FILEDIALOG with the bit pattern for a file, a directory, or both. A poster noted that this could be turned into a template.

The original poster thanked the repliers and said he would use them.

Caveats

  • The thread says nothing about the outcome beyond the thanks.
  • It does not give the FILEDIALOG flag values; they are in the help.
  • Another entry in this area covers a file mask in the DOS File Lookup template.

Today (2026)

Likely unchanged: both the template and FILEDIALOG have been part of Clarion for a long time. Not re-tested.

Sources: Dan S. (Nov 2015, the question), John S. (Nov 2015), Lee W. (Nov 2015) in softvelocity.public.clarion6.