Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHECKSTATE
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
C# 3.0
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01460654
Message ID:
01460888
Views:
30
>When you use CHECKSTATE.Checked, how does it know which control you are referring to? Or is this a CLASS-level property? or am I confused?
>
>Cecil

It's an enumeration (a variable that can have one of a list of values). They're nicer than things like include files so you can have meaningful values instead of numbers - think about the parameters in MESSAGEBOX in VFP:
MESSAGEBOX("Hello", 64, "Title")
You could use a value from a header file in the above code.

In .NET you can use an enumeration (which is nice since it shows you the allowable values and you get intellisense):

(this is the .NET equivalent):
MessageBox.Show("Hello", "Title", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform