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
Wiki Markup
{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.
{excerpt}
{signature:C#}
 public void SetVariable(System.String name, System.String val)
{signature}{signature: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#}
doc.SetVariable("platform", "Windows");{code}
{code:vb.net|title=vb.net}
doc.SetVariable("platform", "Windows"){code}

{example}