Utility Functions and C Language Reference > Virtual Table Server Functions (VTS) for C, C#, and Java > Virtual Table Server (VTS) Functions for Single Connection > Alphabetical Listing > lrvtc_send_row1

lrvtc_send_row1

Sets the data in multiple columns.

C Language

VTCERR2 lrvtc_send_row1 ( char *columnNames, char *values, char *delimiter, unsigned char sendflag );

C# Language

void vts.send_row ( string columnNames, string values, string delimiter, unsigned char sendflag );

Java Language

int Lrvtc.send_row1 ( string columnNames, string values, string delimiter, unsigned char sendflag );
Data Update Functions

Arguments

Name Comments
columnNames The list of the columns to write to.
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.
sendflag

For C, one of:

  • VTSEND_SAME_ROW—Send all the data to the same row.
  • VTSEND_STACKED—Data is sent to available fields in each column according to VTS internal logic.
  • VTSEND_STACKED_UNIQUE—Data is sent to available fields in each column only if the value does not already exist in the column it would be written to.

For C#, one of:

  • LoadRunner.SendRow.SameRow—Send all the data to the same row.
  • LoadRunner.SendRow.Stacked—Data is sent to available fields in each column according to VTS internal logic.
  • LoadRunner.SendRow.StackedUnique—Data is sent to available fields in each column only if the value does not already exist in the column it would be written to.

In all cases, a new row is created if required.

lrvtc_send_row1 sets the data in multiple columns.

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 rc;
    ...
rc = lrvtc_send_row1("C_ID;C_info;C_credit", 
        "{p_cid};{p_cid}_info;0", ";", 
        VTSEND_SAME_ROW);
lr_log_message("send_row1 rc=%d\n", rc);

C# Language Example

.Net Single Connection Example

Java Language Example

Java Single Connection Example