vtc_send_row1

Deprecated. Use lrvtc_send_row1. Sets the data in multiple columns.

C Language

VTCERR2 vtc_send_row1 ( PVCI2 pvci,  char *columnNames, char *values, char *delimiter, unsigned char sendflag, unsigned short *outRc );

C# Language

bool vts_multi.send_row ( long pvci,  string columnNames, string values, string delimiter, unsigned char sendflag);
Data Update Functions

Arguments

NameComments
pvciThe server connection handle.
columnNamesThe list of the columns to write to.
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.
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.

outRcThe status of the operation: 1 - Pass or 0 - Fail

vtc_send_row1 sets the data in multiple columns.

Return Values

Returns zero on success or one of the Error Codes.

C# Language: Returns true on success.

Parameterization

All string input arguments can be passed using standard parameterization.

Example

unsigned short status = 0;
char Message[50];
int rc;

rc = vtc_send_row1(pvci, "C_ID;C_info;C_credit",
    "{p_cid};{p_cid}_info;0",
    ";",
    VTSEND_SAME_ROW,
    &status);
lr_log_message("send_row1 rc=%d\n", rc);

C# Language Example

.Net Multiple Connection Example