GefScript.Script (property)

Gets and sets the script as a string.
Syntax: String = object.Script
object.Script = String
Description: The Script property gets and sets the script on the selected object.

Example:

Sub GefScript_Script()
    
    Dim oCimObj As GefObject
    Dim oCimScript As GefScript
    
    Set oCimObj = CimGetObject
    Set oCimScript = oCimObj.Script
    
    MsgBox "The current script(s) on " & oCimObj.Name & " are: " & _
    Chr$(10) & Chr$(10) & oCimScript.Script
    
End Sub