IPB_Session interface:
NewUnboundedSimpleArray method
Description
Creates an unbounded simple data array.
Syntax
|
1 |
NewUnboundedSimpleArray(pbuint <span>type</span>) |
|
Argument |
Description |
|---|---|
|
type |
An enumerated variable of type pbvalue_* indicating |
Return Values
pbarray or null on
failure.
Examples
This example creates an unbounded simple data array
of the type returned by the getDataType method,
which returns a string of the form dt_type.
Most of the case statements have been removed
for the sake of brevity:
|
1 |
if (d_returnType.isArray())<br>   {<br>      returnValue.l = env->CallObjectMethodA(obj,<br>         mid, values.get());<br>      pbarray v;<br> <br>      switch(d_returnType.getDataType())<br>      {<br>      case dt_boolean:<br>         v = session-><span>NewUnboundedSimpleArray</span><br>            (pbvalue_boolean);<br>         break;<br> <br>      case dt_short:<br>         v = session-><span>NewUnboundedSimpleArray</span><br>            (pbvalue_int);<br>         break;<br>// CASE statements omitted<br>...<br>      default:<br>         v = session-><span>NewUnboundedSimpleArray</span><br>            (pbvalue_any);<br>         break;<br>      }<br> <br>      ci->returnValue->SetArray(v); |
Usage
An unbounded array can have only one dimension, so no dimension information
is needed.
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest