CimClassScript.Text (property)

gets and sets the text of the script.
Syntax: String = object.Text
object.Text = String
Description: CimClassScript.Text is the actual text of this script, you can assign text to this attribute and it will be saved to the script file.

Examples

Dim class As CimClassInstance
Dim scriptList as CimClassScriptList
Dim script as CimClassScript
[...]
Set scriptList = class.Scripts
Set script = scriptList.Item("EXISTING_SCRIPT")
script.Text = "Sub Main() MsgBox ""hi"" EndSub"