PC Review


Reply
Thread Tools Rate Thread

How to attach fixed set of values to PROPERTY?

 
 
Rachana
Guest
Posts: n/a
 
      2nd Nov 2010
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?

Regards,
Rachana


 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      2nd Nov 2010
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
 
Reply With Quote
 
Rachana
Guest
Posts: n/a
 
      3rd Nov 2010
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to attach fixed set of values to PROPERTY? Rachana Microsoft Dot NET 1 3rd Nov 2010 06:48 AM
RFC 2445 Attach property in ics-file Niels Bosboom Microsoft Outlook Calendar 3 6th Aug 2009 02:06 PM
Using Format Property to set fixed decimals mrl Microsoft Access Queries 1 5th Nov 2008 06:06 PM
Attach a listener to the IsMouseOver property moondaddy Microsoft C# .NET 6 16th May 2008 02:28 AM
Property Grid with Dynamic Property values at runtime Joe Microsoft C# .NET 0 29th Aug 2006 04:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:48 PM.