11Attribute VB_Name = "_config_Application"
22'---------------------------------------------------------------------------------------
3+ ' Modul: _initApplication
4+ '---------------------------------------------------------------------------------------
5+ '/**
6+ ' <summary>
7+ ' Application configuration
8+ ' </summary>
9+ ' <remarks>
10+ ' </remarks>
11+ '**/
12+ '---------------------------------------------------------------------------------------
313'<codelib>
414' <file>%AppFolder%/source/_config_Application.bas</file>
5- ' <replace>base/_config_Application.bas</replace> 'dieses Modul ersetzt base/_config_Application.bas
15+ ' <replace>base/_config_Application.bas</replace>
616' <license>_codelib/license.bas</license>
717' <use>%AppFolder%/source/defGlobal_ACLibFilterFormWizard.bas</use>
818' <use>base/_initApplication.bas</use>
@@ -15,20 +25,20 @@ Attribute VB_Name = "_config_Application"
1525'</codelib>
1626'---------------------------------------------------------------------------------------
1727'
18- ' Nicht vergessen: USELOCALIZATION = 1 als Compiler-Arg. in Projekteigenschaft einstellen
28+ ' Don't forget: set USELOCALIZATION = 1 as Compiler argument in Project properties
1929'
2030'
2131Option Compare Database
2232Option Explicit
2333Option Private Module
2434
25- 'Versionsnummer
26- Private Const APPLICATION_VERSION As String = "1.7.1 " '2023-03-01
35+ 'Version
36+ Private Const APPLICATION_VERSION As String = "1.8.0 " '2023-05
2737
2838#Const USE_CLASS_APPLICATIONHANDLER_APPFILE = 1
2939#Const USE_CLASS_APPLICATIONHANDLER_VERSION = 1
3040
31- Private Const APPLICATION_NAME As String = "ACLib FilterForm Wizard"
41+ Public Const APPLICATION_NAME As String = "ACLib FilterForm Wizard"
3242Private Const APPLICATION_FULLNAME As String = "Access Code Library - FilterForm Wizard"
3343Private Const APPLICATION_TITLE As String = APPLICATION_FULLNAME
3444Private Const APPLICATION_ICONFILE As String = "ACLib.ico"
@@ -49,9 +59,9 @@ Private m_Extensions As ApplicationHandler_ExtensionCollection
4959'---------------------------------------------------------------------------------------
5060'/**
5161' <summary>
52- ' Konfigurationseinstellungen initialisieren
62+ ' Init application configuration
5363' </summary>
54- ' <param name="oCurrentAppHandler">Möglichkeit einer Referenzübergabe, damit nicht CurrentApplication genutzt werden muss </param>
64+ ' <param name="CurrentAppHandlerRef">Possibility of a reference transfer so that CurrentApplication does not have to be used </param>
5565' <returns></returns>
5666' <remarks>
5767' </remarks>
@@ -62,47 +72,39 @@ Public Sub InitConfig(Optional ByRef CurrentAppHandlerRef As ApplicationHandler
6272On Error GoTo HandleErr
6373
6474'----------------------------------------------------------------------------
65- ' Fehlerbehandlung
75+ ' Error handler
6676'
6777
6878 modErrorHandler.DefaultErrorHandlerMode = DefaultErrorHandlerMode
6979
70-
71- '----------------------------------------------------------------------------
72- ' Globale Variablen einstellen
73- '
74- 'defGlobal_FilterFormWizard.ACLibIconFileName = m_ApplicationIconFile
75-
76-
7780'----------------------------------------------------------------------------
78- ' Anwendungsinstanz einstellen
81+ ' Application instance
7982'
8083 If CurrentAppHandlerRef Is Nothing Then
8184 Set CurrentAppHandlerRef = CurrentApplication
8285 End If
8386
8487 With CurrentAppHandlerRef
8588
86- 'Zur Sicherheit AccDb einstellen
87- Set .AppDb = CodeDb 'muss auf CodeDb zeigen ,
88- 'da diese Anwendung als Add-In verwendet wird
89+ 'To be on the safe side, set AccDb
90+ Set .AppDb = CodeDb 'must point to CodeDb ,
91+ 'as this application is used as an add-in
8992
90- 'Anwendungsname
93+ 'Application name
9194 .ApplicationName = APPLICATION_NAME
9295 .ApplicationFullName = APPLICATION_FULLNAME
9396 .ApplicationTitle = APPLICATION_TITLE
9497
9598 'Version
9699 .Version = APPLICATION_VERSION
97100
98- ' Formular, das am Ende von CurrentApplication.Start aufgerufen wird
101+ 'Form called at the end of CurrentApplication.Start
99102 .ApplicationStartFormName = ApplicationStartFormName
100-
101103
102104 End With
103105
104106'----------------------------------------------------------------------------
105- ' Erweiterungen :
107+ ' Extensions :
106108'
107109 Set m_Extensions = New ApplicationHandler_ExtensionCollection
108110 With m_Extensions
@@ -118,13 +120,6 @@ On Error GoTo HandleErr
118120
119121 End With
120122
121- '----------------------------------------------------------------------------
122- ' Konfiguration nach Erweiterungen
123- '
124-
125- 'AppIcon
126- 'oCurrentAppHandler.SetAppIcon CodeProject.Path & "\" & m_ApplicationIconFile, True
127-
128123ExitHere:
129124 Exit Sub
130125
@@ -143,11 +138,11 @@ End Sub
143138
144139'############################################################################
145140'
146- ' Funktionen für die Anwendungswartung
147- ' (werden nur im Anwendungsentwurf benötigt )
141+ ' Functions for application maintenance
142+ ' (only needed in the application design )
148143'
149144'----------------------------------------------------------------------------
150- ' Hilfsfunktion zum Speichern von Dateien in die lokale AppFile-Tabelle
145+ ' Auxiliary function for saving files to the local AppFile table
151146'----------------------------------------------------------------------------
152147Private Sub SetAppFiles ()
153148 Call CurrentApplication .Extensions ("AppFile" ).SaveAppFile("AppIcon" , CodeProject.Path & "\" & APPLICATION_ICONFILE)
0 commit comments