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

AVEVA™ Plant SCADA

End Statement

  • Last UpdatedJul 18, 2023
  • 1 minute read

The End statement Ends a block of statements such as a Sub procedure or Function.

End[{Function | If | Sub}]

Example

Dim Var1 as String
Var1 = "hello"
' Calling Test
Test Var1
MsgBox Var1

Sub Test(wvar1 as string)
MsgBox wvar1
wvar1 = "goodbye"
End
End Sub

See Also

Control Structures

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