Then, create a form where the user can set his or her preferences. You will also need to write a project method that employs the User's preferences. This method should run from the On Startup method and after the user makes any changes. What if my application is designed to be used with multiple data files As you probably figured out, this method can cause a few problems if your application is designed to be used with more than one data file. First, you have to decide if you want the preferences to carry over between data files or if the User should be forced to reset them.
Most applications save the user's preferences in a separate file on their hard drive.
On Windows, they may be stored in the same directory as the application or in a separate directory in the Windows directory. You can store your preferences in any of these typical locations as well by using 4D's BLOBs. Any type of information that needs to be used by different data files or preserved between structure changes can be packed into a BLOB and saved to disk, The BLOB can be unpacked and the information assimilated into the new data file or new structure file quickly and easily. Write a Method to store the preferences to disk whenever the user shuts down or changes the Preferences. Save the Document in the Preferences folder or with the application.