XenoGuard Documentation

Write Value

Actions » Windows » File Handling » Csv » Write Value

The action Write Value enters contents into a specified cell within a CSV file.


[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. Open the File Handling node.
  3. In the CSV node, select the Write Value action.

Parameters:

The action has the following input parameters:


NAME DESCRIPTION
File
Specifies the location of the CSV file.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types
 [Variable, Parameter, Enum] 
Encoding
The encryption to be used for character encoding.

Allowed Values: ASCII, ANSI, UTF-8, UTF-8-BOM, Unicode

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Column Separator
The sign that separates each column of a CSV file.

Default Value: semi-colon (;)

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Row
Specifies the row within the CSV file.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Column
Specifies the column within the CSV file.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Column Width
Sets the width of the specified column within the CSV file.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Content
The content to be written within the specified row and column of the CSV file. 

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Warning A file access error occurs when writing in the CSV file while it is open. Make sure that the file being accessed is closed or not active. 

Example 1 (Enters a content within the CSV file):

This example inserts content to a CSV file from a local Employee variable with Text as data type. Values for the Row and Column Width were set. When the action is successful, a notice is then output via the Message Box.


See other CSV operations:

Read File
Read Value
Save Buffer
Clear Content