Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

PageEnvironmentFirst

  • Last UpdatedJul 13, 2023
  • 1 minute read

Retrieves the first environment variable in the current page. This function will return an error if there are no environment variables in the page.

Syntax

PageEnvironmentFirst(Name, Value)

Name:

Receives the name of the first environment variable in the current page.

Value:

Receives the value associated with the first environment variable.

Return Value

0 (zero) if successful, otherwise an error is returned.

Example

Printing out environment variables:

Dim name As String
Dim value As String
Dim prevName As String
On Error Resume Next
Err.Clear()
GraphicsBuilder.PageEnvironmentFirst(name, value)
While (Err.Number = 0)
Console.Out.WriteLine(name + "=" + value)
prevName = name
GraphicsBuilder.PageEnvironmentNext(prevName, name, value)
End While

PageEnvironmentAdd

In This Topic
TitleResults for “How to create a CRG?”Also Available in