Mensaje
De
02/06/2008 13:54:35
 
 
a
02/06/2008 06:46:55
General information
Foro:
ASP.NET
Category:
Coding, syntax and commands
Título:
Miscellaneous
ID de la conversación:
01320903
ID del mensaje:
01321084
Views:
47
>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
Responder
Mapa
Ver