Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CHECKSTATE
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 3.0
Database:
Visual FoxPro
Divers
Thread ID:
01460654
Message ID:
01460888
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform