Share this page

# lrvtc_update_message

Replaces the data in a field.

## C Language

    VTCERR2 lrvtc_update_message ( char *columnName, int rowIndex , char *value );

## C# Language

    void vts.update_message ( string columnName, int rowIndex , string value );

## Java Language

    int Lrvtc.update_message ( string columnName, int rowIndex , string value );

Data Update Functions

## Arguments

Name | Comments
--- | ---
columnName | The column to write to.
rowIndex | The number of the row. The first row has index 1.
value | The value to set the field to.

lrvtc_update_message writes the value to the field specified with the column name and row index. The value in the field before lrvtc_update_message is called is overwritten.

## 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

Copy code

    int rc, row_number;
        ....
        // Write to the last row
        row_number = lrvtc_column_size("C_ID");
        rc = lrvtc_update_message("C_info", row_number, "{p_cid}_info_updated");
        lr_log_message("update_message rc=%d\n", rc);

## C# Language Example

.NET Single Connection Example

## Java Language Example

Java Single Connection Example

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: