Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets the value of the variable with the specified name. If the variable does not exist, setVariable creates a new variable. If the variable does exist, setVariable overwrites the existing variable.

Signature
C#
C#
 public void SetVariable(System.String name, System.String val)
Signature
vb.net
vb.net
Public Sub SetVariable(ByVal name As String, ByVal val As String)
Parameters
Param
name
name

The name of the variable.

Param
val
val

The value of the variable.

Example
Code Block
csharp
csharp
titleC#
doc.SetVariable("platform", "Windows");
Code Block
vb.net
vb.net
titlevb.net
doc.SetVariable("platform", "Windows")