JavaScript Functions > Virtual Table Server Functions for Single Connection (lrvtc) > Alphabetical Listing of Virtual Table Server Functions (Single Server) > lrvtc.updateRow1

lrvtc.updateRow1

Sets the values of specified fields in a row.

Example Data Update Functions

Syntax

lrvtc.updateRow1 ( columnNames, rowIndex ,  values,  delimiter );

Arguments

name Comments
columnNames The list of the columns to write to.
rowIndex The number of the row. The first row has index 1.
values The list of values to write to the columns.
delimiter The character that separates the column names and values in the lists. If a string, rather than a single character, is passed in delimiter, the string as a whole is the delimiter.

lrvtc.updateRow1 sets the values of the fields specified by columnNames in the row specified by rowIndex.

Return Values

Returns zero on success or one of the Error Codes.

Parameterization

All string input arguments can be passed using standard parameterization.

Example

    var row, rc;
    ...
    for (row=1; row<=10; row++)
    {
        var FieldValues = "productname"+row+"_updated;productinfo"+row+"_updated");
        rc = lrvtc.updateRow1("P_name;P_info", row, FieldValues, ";");
        lr.logMessage("update_row1 rc="+ rc);
    }