Initializing a varray collection of records [message #39395] |
Sun, 14 July 2002 13:23  |
IndyWest
Messages: 6 Registered: July 2002
|
Junior Member |
|
|
Howdy Group,
Could someone point me out as to what I have to do here? Oracle gives me a ORA-6531 error as I am not initializing the contents of a variable array. Question, how do I initialize a varray of records?
My code looks like this:
==================
Type rec1 Is Record (Col1 Number, Col2 Number);
Type arr1 is Varray(100) of rec1;
arrTest arr1;
==================
Tried initializing arrTest using the following (loop-wise) to no avail:
a. arrTest(0):= arr1(1, 1);
b. arrTest(0).Col1:= 0;
arrTest(0).Col2:= 0;
c. Fetch cur_Test Into arrTest(0);
Thanks for the help,
IW.
|
|
|
|
|