PBUnboundedArrayCreator template class:
SetAt method
Description
Sets the array item at the specified position.
Syntax
For arrays of a specified ValueType:
SetAt(pblong pos, ValueType v)
For string arrays:
SetAt(pblong pos, LPCTSTR string)
SetAt(pblong pos, pbstring string)
Argument
|
Description
|
pos
|
A pblong identifying
a position in the array
|
v
|
A ValueType defined in pbtraits.h
|
string
|
A string of type pbstring or LPCTSTR
|
Return Values
None.
Examples
This example shows the use of SetAt in
arrays of a type specified by a ValueType:
PBUnboundedArrayCreator<I> ac(session);
in >> iarg[i];
for (i=0; i<itemcount1; i++)
{
ac.SetAt(i+1, iarg[i]);
}
out_array = ac.GetArray();
See Also