Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
X# examples - Readability
Message
De
30/10/2019 16:49:31
 
 
À
30/10/2019 15:13:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
VFP Compiler for .NET
Divers
Thread ID:
01671739
Message ID:
01671745
Vues:
46
> Ah, it's a set... like I saw in Pascal long ago. How does an assignment look then? Can it have multiple members true at the same time? Well I guess I'd learn that soon enough if I found the time to install it :).
>So it's not a set, it's a #defined constant by a different name. Except I guess you can't mix values from different enumerations, even if their values are the same. The compiler would catch that for you, eh?
>
Yes and you can do multiples too..
You then use the unary comparison And "&"/Or "|":
MyType := SysStyle.Julian & (SysStyle.Joe | SysStyle.Foo | SysStyle.Blah)
Johan Nel
George, South Africa
Friend of XSharp (FOX) member
E-mail : johan(dot)nel(at)xsinet(dot)co(dot)za
Web site : https://xsharp.info
X# runtime : https://github.com/X-Sharp/XSharpPublic
Radio talk : https://blog.aksel.com/2019/07/why-xsharp-might-be-tool-foxpro.html
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform