Movicon Help on Line - Rel. 11.7.1302
Syntax |
SaveChanges() |
Description |
This method allows you to save the referenced Command List for the object in question. Any modifications to the command list will only be implemented and executed by the object after the SaveChange method has been invoked.
Caution: Modifications to the Object command lists, except for Button objects, will be applied only when the object's Command List already contains at least one command at its initialization. When the object in question has been associated with a configuration file, the save command of this configuration file will also save any new Command Lists. Therefore, when the page is next loaded, the new command list will be applied when the control is initialized. |
Parameter |
Description |
None |
None
|
Result |
Boolean |
Example1:
Public Sub Click()
Dim objButtonRelease As ButtonCmdTarget
Dim objCommandList As CommandsListCmdTarget
Set objButtonRelease = GetSynopticObject.GetSubObject("objButtonRelease").GetObjectInterface
Set objCommandList = objButtonRelease.GetCommandsInterfaceOnRelease
objCommandList.SaveChanges()
Set objCommandList = Nothing
Set objButtonRelease = Nothing
End Sub
Example2:
Public Sub Click()
Dim objRect As DrawCmdTarget
Dim objCommandList As CommandsListCmdTarget
Set objRect = GetSynopticObject.GetSubObject("objRect")
Set objCommandList = objRect.GetCommandsInterfaceOnRelease
objCommandList.SaveChanges()
Set objCommandList = Nothing
Set objRect = Nothing
End Sub