SetAlias, SynopticCmdTarget Function

Syntax

SetAlias(_lpszAlias, _lpszValue)

Description

This function sets the value defined for the Alias passed as the  "lpszAlias" parameter.   The new value will be the one passed with  the "lpszValue " parameter and may be a variable name or a string or numeric value.

 

Parameter

Description

lpszAlias As String

Name of the Alias for which the value is set. If Alias does not exist, it  will be added as a new one.

lpszValue As String

Value to set the Alias with.

 

Result

Boolean

 

Example:

Public Sub Click()

Dim objScreen As SynopticCmdTarget

Set objScreen = GetSynopticObject

Debug.Print objScreen.SetAlias("TsetAlais", "VAR00001")

Set objScreen = Nothing

End Sub

 

See Also