Skip to content

Commit

Permalink
[Config] Add SetFilePath() method.
Browse files Browse the repository at this point in the history
Sets the value for the GetFilePath() function.
  • Loading branch information
Davnit committed Dec 2, 2017
1 parent a7ba083 commit e4f17e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion trunk/clsConfig.cls
Expand Up @@ -1643,11 +1643,16 @@ Public Property Let DebugConfig(ByVal sValue As Boolean)
m_DebugConfig = sValue
End Property

' Returns the path to the specified file if it is overriden by this configuration.
' Returns the path to the directory the file should be found in it is overriden by this configuration.
Public Function GetFilePath(ByVal sFileName As String) As String
GetFilePath = ReadSetting(SECTION_FILEPATH, sFileName)
End Function

' Sets the directory to search for the file in.
Public Sub SetFilePath(ByVal sFileName As String, ByVal sDirectory As String)
WriteSetting SECTION_FILEPATH, sFileName, sDirectory
End Sub

Public Function GetVersionByte(ByVal sProductCode As String) As Long
Dim iIndex As Integer
iIndex = GetProductIndex(GetProductInfo(sProductCode).ShortCode)
Expand Down

0 comments on commit e4f17e2

Please sign in to comment.