This function returns the provider's alias with the specified code or creates it if the alias does not exist.
object.CreateAlias(aAlias)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProvider interface |
|
aAlias |
In, Required | string |
The alias of the provider |
Add a new alias with the selected code to the provider.
Dim aFilter
Dim aProviders
Dim aProvider
Dim aAlias
Dim aMessage
const aAliasCode = "WCB"
Set aFilter = Profile.CreateProvidersFilter
aFilter.Category = 2 'pcProvider
set aProviders = Profile.LoadProvidersByFilter(aFilter)
aMessage = aMessage & vbNewLine &_
"The number of the providers is " & aProviders.Count
for each aProvider in aProviders
set aAlias = aProvider.CreateAlias (aAliasCode)
aAlias.Reference1 = "Ref1"
aAlias.Reference2 = "Ref2"
aAlias.Reference3 = "Ref3"
aProvider.Save
aMessage = aMessage & vbNewLine & aProvider.FullName &_
" has the alias with the code '" & aAlias.Code & "'"
next
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface Alias can be found and added in
.