Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Objects in Packages?

Re: Objects in Packages?

From: Michael42 <melliott42_at_yahoo.com>
Date: 25 Feb 2007 12:35:58 -0800
Message-ID: <1172435758.844446.319750@p10g2000cwp.googlegroups.com>


Mark,

>> Try it and find out.

Yep I tried it before posting.

The error I get for below code is: "object not supported in this context.".

I can create standalone objects. I can create functions and prcedures in my packages.

What can you suggest?

Thanks,

Michael

create or replace
PACKAGE PK1 AS
   PROCEDURE home;

   TYPE MsgBox AS OBJECT (
   Title varchar2(50),
   Message varchar2(2000),
   MEMBER PROCEDURE setTitle (pTitle IN varchar2 DEFAULT NULL),    MEMBER PROCEDURE setMessage (pMessage IN varchar2 DEFAULT NULL),    MEMBER PROCEDURE displayMsg
   );

END PK1; Received on Sun Feb 25 2007 - 14:35:58 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US