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

AVEVA™ XR Studio

readfield

  • Last UpdatedNov 05, 2023
  • 2 minute read

The readfield statement populates a field (usually an mstring, dstring or an sjson) from a text file. This command works together with writefield.

Note: The path of the file is local to the engine executable.

Platform support

This node is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-Portable WASM platforms.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Code example

This is a code example for the readfield statement.

<command name="showmenu">

<readfield field="dict.value" file="lastuser.txt"/>

<!-- ... -->

</command>

Fields

These are the fields for readfield statement.

Fields

Type

Use

Default value

Description

field

sstring

Mandatory

No default value

The name of the field.

file

sstring

Mandatory

No default value

The source file path.

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