Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP inlist() in c#
Message
From
02/06/2008 13:54:35
 
 
To
02/06/2008 06:46:55
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01320903
Message ID:
01321084
Views:
45
>if there any similar vfp inlist() command in C#?
>
>
>for eg.
>
>VFP Code:
>
>IF INLIST(postCode,'001','002','003')
>...
>ENDIF

This is what I have. Thanks for the UT community
        ' VFP inlist equivalent
        ' expO1 Item where all the items will be tried to look into
        ' expO2 Param array for a list of items
        Public Function Inlist(ByVal toItem As IComparable, ByVal ParamArray toItems() As IComparable) As Boolean
            Return Array.IndexOf(toItems, toItem) <> -1
        End Function
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform