Skip to content

Commit 47fbe1d

Browse files
committed
2 parents 4e63e0e + 1b2f48a commit 47fbe1d

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ Compare lettercase from CurrentVbProject with saved file dictionary items
1414

1515
#### Parameters
1616
- OpenDialogToFixLettercase - (Boolean) - Open dialog to fix lettercase
17-
- DeclDictFilePath - (String) - use alternative file path
17+
- DeclDictFilePath - (String) - use alternative dictionary file path
1818

1919
#### Returns
2020
- Boolean (True) ... if DiffCount = 0
2121
- String ... if DiffCount > 0 => "Failed: <lettercase info>"
22+
- String ... if dict file not exists => "Info: No dictionary data found. A new dictionary has been created."
2223

2324
#### Example
2425
```

Tests/DeclDictTester/DeclDictApiTests.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Public Sub RunVcsCheck_WithoutDialogChangedLettercase_CheckReturnMessage()
2828

2929
' 1st call => run first export
3030
Result = Application.Run(AddInCallPath, False, DictFilePath)
31-
Assert.That Result, Iz.EqualTo("Info: no export data exists, run first export")
31+
Assert.That Result, Iz.EqualTo("Info: No dictionary data found. A new dictionary has been created.")
3232

3333
' 2nd call => no changes => Return value = True
3434
Result = Application.Run(AddInCallPath, False, DictFilePath)

source/modules/_AddInAPI.bas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ End Function
3939
' Returns:
4040
' Boolean (True) ... if DiffCount = 0
4141
' String ... if DiffCount > 0 => "Failed: <lettercase info>"
42+
' String ... if dict file not exists => "Info: No dictionary data found. A new dictionary has been created."
4243
'
4344
'---------------------------------------------------------------------------------------
4445
Public Function RunVcsCheck(Optional ByVal OpenDialogToFixLettercase As Boolean = False, _
@@ -60,7 +61,7 @@ Public Function RunVcsCheck(Optional ByVal OpenDialogToFixLettercase As Boolean
6061
.ImportVBProject CurrentVbProject
6162
' ... log info: first export
6263
.ExportToFile DeclDictFilePath
63-
RunVcsCheck = "Info: no export data exists, run first export"
64+
RunVcsCheck = "Info: No dictionary data found. A new dictionary has been created."
6465
Exit Function
6566
End If
6667

source/tables/USysAPI.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
&lt;blockquote&gt;
1212

1313
&lt;div&gt;&lt;font size=2&gt;OpenDialogToFixLettercase - (Boolean) - Open dialog to fix lettercase&lt;/font&gt;&lt;/div&gt;
14-
&lt;div&gt;&lt;font size=2&gt;DeclDictFilePath - (String) - use alternative file path&lt;/font&gt;&lt;/div&gt;
14+
&lt;div&gt;&lt;font size=2&gt;DeclDictFilePath - (String) - use alternative dictionary file path&lt;/font&gt;&lt;/div&gt;
1515

1616
&lt;/blockquote&gt;
1717

@@ -23,6 +23,7 @@
2323
&lt;ul&gt;
2424
&lt;li&gt;&lt;font size=2&gt;Boolean (True) ... if DiffCount = 0&lt;/font&gt;&lt;/li&gt;
2525
&lt;li&gt;&lt;font size=2&gt;String ... if DiffCount &amp;gt; 0 =&amp;gt; &amp;quot;Failed: &amp;lt;lettercase info&amp;gt;&amp;quot;&lt;/font&gt;&lt;/li&gt;
26+
&lt;li&gt;&lt;font size=2&gt;String ... if dict file not exists =&amp;gt; &amp;quot;Info: No dictionary data found. A new dictionary has been created.&amp;quot;&lt;/font&gt;&lt;/li&gt;
2627
&lt;/ul&gt;
2728
&lt;/ul&gt;
2829

0 commit comments

Comments
 (0)