SetValue

PowerBuilder Native Interface

IPB_Session interface:

SetValue method

Description

Sets the value of one IPB_Value object to the value of another IPB_Value object.

Syntax

SetValue( IPB_Value* dest, IPB_Value* src)

Argument

Description

dest

The value to be replaced

src

The value to which dest is to be changed

Return Values

None.

Examples

These statements set the return value in the PBCallInfo structure ci to the value IPBValue_ret, then release the IBPValue_ret structure:

Session -> SetValue(ci -> returnValue, IPBValue_ret);
Session -> ReleaseValue(IPBValue_ret);

Usage

Unlike the IPB_Value Set<type> methods, the SetValue method does not verify that the datatype of the replacement value matches the datatype of the original value. The original value is freed and a new value is cloned from the src value. Use this method if you want to swap two different IPB_Value objects that have different types.

See Also