Previous Topic: Creating an Executable Program

Next Topic: Testing the Application

Stopping the Select Data Source Dialog Appearing

Throughout this tutorial you may have noticed that every time a function runs you are prompted to select an ODBC data source (Plex r7.0 Tutorial.dsn). This can be prevented by entering the required DSN (Data Source Name) in the application’s initialization (.INI) file. When you created an executable program you also created a corresponding file called Projects.ini.

  1. In the Generate and Build window, select the Project Manager function.
  2. From the View menu, choose View Source.
  3. In the Select Source To View dialog, select the Projects.ini file (the last file in the list) and click OK.
  4. Scroll down to the [ODBC Settings] section and update the DSN= setting as shown:
    [ODBC Settings]
    SAVE DSN=False
    DSN=Plex r7.0 Tutorial.dsn
    Userid=
    Password=
    Database=
    Errorlog=
    Default Connect=True
    
  5. Close the document and save your changes.