InputFileByAlias
Gets the name of the assigned database with the specified alias.
Compatibility
Available as of IDEA version 9.1.1
Syntax
InputFileByAlias (aliasName as string) as String
Parameter
aliasName
The alias whose corresponding assigned database name is requested.
Return Value
The name without path of the assigned database with the specified alias.
Remark
Aliases are case insensitive.
If aliasName is null, empty or if it consists only of white space characters, the method interprets the call as a request to resolve the primary database.
An exception is thrown if a database with the specified alias does not exist.
Example
Dim Aliases() As String
Dim i As Integer
Redim Aliases(2)
Aliases(0) = "" 'Represents the primary database
Aliases(1) = "aaa1"
Aliases(2) = "aaa2"
Sub Main
'Log database name for each assigned database if the collection of assigned databases contains an element with the specified alias
For i = 0 to 2
If SmartContext.InputFilesContainsAlias(Aliases(i)) Then
SmartContext.Log.LogMessage "Assigned database name for aliases <" & Aliases(i) & ">: " &_
SmartContext.InputFileByAlias(Aliases(i))
Else
SmartContext.Log.LogMessage "InputFilesContainsAlias("""" & Aliases(i) & """"): " &_
SmartContext.InputFilesContainsAlias(Aliases(i))
End If
Next
End Sub