A program (.prg file), form (.scx file), or Active Document class that serves as the execution starting point for a compiled application, and from which other components of your application are called. Typically, the main file sets the application's operational environment, runs menu programs or forms to display the application's interface, and establishes the event loop of the application with the READ EVENTS command. You designate a main file in the Project Manager before building your application.