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

AVEVA™ Plant SCADA

Configuring Edit Box Methods

  • Last UpdatedJul 13, 2023
  • 1 minute read

You can use the methods of an Edit Box control to:

  • Save the contained text at run time to a file.

  • Load text into the control from a file at run time.

To save the contained text in an Edit Box control

  • In an action script, use the following method:

    ControlName.SaveText(FileName);

    where ControlName is the name of the Edit Box control and FileName is the name of the file in which to save the contents of the control.

    The text contained in the control at run time is saved to the specified file.

If you only specify a file name, the file is saved by default in the user folder of the operating system. For example: c:\documents and settings\username.

To load text into an Edit Box control from a file

  • In an action script, use the following method:

    ControlName.LoadText(FileName);

    where ControlName is the name of the Edit Box control and FileName is the name of the file you want to load the text from.

    The text contained in the file is loaded into the run time contents of the Edit Box control.

If you only specify a file name, by default, the file is expected to be in the user folder of the operating system. For example: c:\documents and settings\username.

Using Methods in Scripting

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