Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Why is Public Enum required?


Message #1 by "Prasanna Vadan Miapuram" <prasannapeg@h...> on Mon, 26 Jun 2000 18:39:46
Hi,

you use Enum to define a set of enumerated type of data.
Say (e.g.) ENUM myDate [Monday], [Tueday] ...... End ENUM
Then later if I have a control with property Date, I can set it to datetype 
myDate. And Date property will be limited to Monday, Tuesday.. and so on.

Of course for normal application const can take place of ENUM but it some 
cases ENUM is better.




>From: "Prasanna Vadan Miapuram" <prasannapeg@h...>
>Reply-To: "professional vb" <pro_vb@p...>
>To: "professional vb" <pro_vb@p...>
>Subject: [pro_vb] Why is Public Enum required?
>Date: Mon, 26 Jun 2000 18:39:46
>
>Hi Friends,
>
>Can anyone tell me why do I require a Enum declartion at module level, when
>I can always define a constant.
>
>Thanks in Advance
>

  Return to Index