File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff 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```
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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'---------------------------------------------------------------------------------------
4445Public 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
Original file line number Diff line number Diff line change 1111< blockquote>
1212
1313< div>< font size=2> OpenDialogToFixLettercase - (Boolean) - Open dialog to fix lettercase< /font>< /div>
14- < div>< font size=2> DeclDictFilePath - (String) - use alternative file path< /font>< /div>
14+ < div>< font size=2> DeclDictFilePath - (String) - use alternative dictionary file path< /font>< /div>
1515
1616< /blockquote>
1717
2323 < ul>
2424 < li>< font size=2> Boolean (True) ... if DiffCount = 0< /font>< /li>
2525 < li>< font size=2> String ... if DiffCount & gt; 0 =& gt; & quot;Failed: & lt;lettercase info& gt;& quot;< /font>< /li>
26+ < li>< font size=2> String ... if dict file not exists =& gt; & quot;Info: No dictionary data found. A new dictionary has been created.& quot;< /font>< /li>
2627 < /ul>
2728< /ul>
2829
You can’t perform that action at this time.
0 commit comments