vtc_send_message

Deprecated. User lrvtc_send_message. Sets the last field of a column to a value.

C Language

VTCERR2 vtc_send_message ( PVCI2 pvci,  char *columnName, char *value, unsigned short *outRc );

C# Language

bool vts_multi.send_message ( long pvci,  string columnName, string value);
Data Update Functions

Arguments

NameComments
pvciThe server connection handle.
columnName The name of the column.
valueThe string to write to the field.
outRcThe status of the operation: 1 - Pass or 0 - Fail

vtc_send_message sets the last field of a column to a value. If there is no empty field in the column, a new row is created.

Return Values

C Language:   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

int colsize, rc;
char question[30];
    ...
rc = vtc_column_size(pvci, "O_ID", &colsize);
...
sprintf(question, "order%d_question", colsize);
rc = vtc_send_message(pvci, "H_question", question, &status);
lr_log_message("send_if_unique rc=%d\n", rc);  

C# Language Example

.Net Multiple Connection Example