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}{signature:
}
Signature
vb.net
vb.net
Public Sub SetVariable(ByVal name As String, ByVal val As String)
{signature}
{parameters}
{param:name}The name of the variable.{param}
{param:val}The value of the variable.{param}
{example}{code:csharp|title=C#}
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} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

doc.SetVariable("platform", "Windows")
{code} {example}