SetAlias, DrawCmdTarget 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.

If the Alias does not exist in the object's Table it will be added as a new one.

 

After having added or modified a command from the object's command list you must execute the  SaveChanges method from the  CommandsListCmdTarget interface to apply modifications to the object's command list.

Please also remember that any modifications to command lists will only remain valid until the object is downloaded from memory (closing screen).  The object will be restored with the initial  command list associated when programmed the next time it is uploaded. However, command list  modifications can be made persistent by associating the object with a configuration file which must be saved after modifying and saving the object's command list.

 

 

 

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()

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

End Sub

 

See Also