SetValue Method

Applies To

OParamArray

Description

This method sets the current value of the particular element of the object.

Usage

oresult SetValue(const OValue &val, int index);

oresult SetValue(int val, int index);

oresult SetValue(long val, int index);

oresult SetValue(double val, int index);

oresult SetValue(const char *val, int index);

Arguments

val A variable of one of a number of types, which will receive the value

index Specifies the array element

Remarks

These methods sets the current value of the element of the object.

Return Value

An oresult indicating whether the operation succeeded (OSUCCESS) or not (OFAILURE).