lrvtc_update_row1

Sets the values of specified fields in a row.

C Language

VTCERR2 lrvtc_update_row1 ( char *columnNames,  int rowIndex ,  char *values,  char *delimiter );

C# Language

void vts.update_row ( string columnNames,  int rowIndex ,  string values,  string delimiter );

Java Language

int Lrvtc.update_row1 ( string columnNames,  int rowIndex ,  string values,  string delimiter );
Data Update Functions

Arguments

NameComments
columnNamesThe list of the columns to write to.
rowIndexThe number of the row. The first row has index 1.
valuesThe list of values to write to the columns.
delimiterThe 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_update_row1 sets the values of the fields specified by columnNames in the row specified by rowIndex.

Return Values

C Language:   Returns zero on success or one of the Error Codes.

C# Language: No return value.

Java Language:   Returns zero on success or one of the Error Codes.

Parameterization

All string input arguments can be passed using standard parameterization.

C Language Example

    int row, rc;
    char FieldValues[50];
    ...
    for (row=1; row<=10; row++)
    {
        sprintf(FieldValues, "productname%d_updated;productinfo%d_updated", row,row);
        rc = lrvtc_update_row1("P_name;P_info", row, FieldValues, ";");
        lr_log_message("update_row1 rc=%d\n", rc);
    }

    

C# Language Example

.Net Single Connection Example

Java Language Example

Java Single Connection Example