On Nov 2, 9:29*pm, Armin Zingler <az.nos...@freenet.de> wrote:
> Am 02.11.2010 16:51, schrieb Rachana:
>
> > Hi,
> > Suppose, I have class WORK which has method ASSIGN and property
> > SHIFT.
> > The property has two reserved values 'DAY' and 'NIGHT'.
> > I don't want to validate inside the SET procedure. Instead, those
> > values should get auto displayed (like VB intellisense) in the client
> > program. How to achieve this?
>
> enum Shift
> * * Day
> * * Night
> end enum
>
> class Work
> * property Shift as Shift * '<<< Make the type of the property 'Shift'
> * * set
> * * get
> * end property
> end class
>
> --
> Armin
Thanks, Armin.
Regards,
Rachana
|