Path Control Template for Clarion *** This template has been tested with C4 only *** FILE: PathCtrl.ZIP SIZE: 12,650 bytes FILE DATE: 01/03/1999 UPLOADED BY: John Farmer john@butlerandassoc.com AUTHOR: John Farmer TYPE: Freeware VERSION: 1.00 DESCRIPTION: Variable File Path Control COMMENTS: The Path Control template is a simple means of assigning a single directory path to any number of files in a dictionary. The idea is to allow an application to read one variable from an INI file and use that as the directory path for every file in the dictionary. This allows you to relocate an application's data set by changing one variable. This is an extension placed in the Global Extensions section of an application. The app programmer supplies values (or accepts default) for the following INI File Name - Name of file to be read. Format filename.ini INI Section Name - Name of the INI section to be read INI Entry Name - Name of the INI entry Global Variable - Global variable to be defined that will hold the INI value read. This template defines the global variable for you. Path Length - Length to define the global string variable above. Filename Length - Length to define the variables for each file name in the DCT. Requirements: Each file in the dictionary must have a variable in the Full Path entry. The variable must be in the form of !GLO:FNfilename Example: Your dictionary has a file named NameAddr. The variable will be !glo:fnNameAddr Your application reads an INI file named myapp.ini which contains the following: [Directory] Path = c:\myapp\data The global variable takes on the value glo:fnNameAddr = 'c:\myapp\data\nameaddr' See the attached example fntest.app & fntest.dct.