Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter EighteenDataView Integration (continued)

DataViewCellSetText Function

Overview

The DataViewCellSetText function sets the text for a specified cell.

Syntax/Parameters

Syntax

int = DataViewCellSetText ( handle object, [int row, int column] | [string address],
                        string data );

Parameters

object

A handle either to a Data View Object or to a window that employs Data View.

row and column

An optional pair of int values specifying the row and column of the cell. Or,

address

An optional string that can be used as a cell address as an alternative to specifying the row and column parameters.

data

A string to set as the cell’s text. Note that the cell type must be able to accept the text being submitted.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure. Use the GetLastError function to retrieve error information.

Remarks

Since this function actually alters the state of a Data View Sheet, it is advisable to use a Data View Object instead if more than one change must be made. Using a window handle will result in an immediate edit transaction and screen update.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL