Reset Record Object [message #186771] |
Wed, 09 August 2006 07:45  |
annagel
Messages: 220 Registered: April 2006
|
Senior Member |
|
|
Is there any quick PL/SQL way to reset a record object? I know setting the object to null will 'clear' it, but I want to reinitialize it so I have my default values back. So resetting an object like this:
TYPE cs3_info IS RECORD (
/*probably constants*/
c_business_group_id NUMBER (20) := 0,
c_employee_person_type_id NUMBER (20) := 3,
c_db_date_format VARCHAR2 (30) := 'YYYY/MM/DD HH24:MI:SS',
c_validate BOOLEAN := TRUE,
c_rehire_reason VARCHAR2 (9) := 'CONV_TERM');
would give me all of these default values again rather than null everywhere.
Thanks
Andrew
|
|
|
|
|