Open topic with navigation

TIBCO Rendezvous® 8.8.0

# Update Scalar

Convenience Methods

## Declaration

    TibrvStatus updatescalar_type (
        const char*         fieldName,
        tibrv_scalar_type    value,
        tibrv_u16           fieldId=0);

## Purpose

Update a field containing a scalar value.

## Remarks

Each convenience method in this family locates a field (by name or identifier) and updates its data.

The type of the existing field (within the message) and the type of the updating `value` must match.

Method Name | Value Type | Type Description
`update` `Bool` | `tibrv_``bool` | boolean scalar
`update` `I8` | `tibrv_``i8` | 8-bit integer
`update` `U8` | `tibrv_``u8` | 8-bit unsigned integer
`update` `I16` | `tibrv_``i16` | 16-bit integer
`update` `U16` | `tibrv_``u16` | 16-bit unsigned integer
`update` `I32` | `tibrv_``i32` | 32-bit integer
`update` `U32` | `tibrv_``u32` | 32-bit unsigned integer
`update` `I64` | `tibrv_``i64` | 64-bit integer
`update` `U64` | `tibrv_``u64` | 64-bit unsigned integer
`update` `F32` | `tibrv_``f32` | 32-bit floating point
`update` `F64` | `tibrv_``f64` | 64-bit floating point
`update` `IPAddr32` | `tibrv_``ipaddr32` | 4-byte IP address
`update` `IPPort16` | `tibrv_``ipport16` | 2-byte IP port

Parameter | Description
`fieldName` | Update a field with this name.
`value` | Update the message field to this value (which may be a literal or stored in a variable). The method copies the value into the new message field.
`fieldId` | Update the field with this identifier. Zero is a special value that signifies no field identifier. It is illegal to add a field that has both a `NULL` field name, and a non-zero field identifier.

## See Also

Field Names and Field Identifiers

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2025. Cloud Software Group, Inc. All Rights Reserved.