Extensibility > Graphics Builder Automation Interface > Page Properties Functions > PageEnvironmentFirst

PageEnvironmentFirst

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

Related Functions

PageEnvironmentAdd

Published June 2018