Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters are being ignored
Message
From
06/06/2006 05:07:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/06/2006 17:15:50
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01126998
Message ID:
01127288
Views:
9
>>Isn't it too much code for Inlist. IMHO System.Array class has corresponding (and much better) ways to implement it (like Exists, Find ...).
>
>I don't know. I need to simulate the VFP function as is. In VFP, I can make a call to Inlist() like that. So, I need to support the same in VB.NET. Some conversions I am doing contains a lot of Inlist() so we simply bind it with oApp.Inlist(). I just don't know why the parameters starting over 10 are ignored. It is as if it would be empty.

I mean rewrite your oApp's inlist so it accepts arbitrary number of parameters and returns result for any type. Here is declaration and usage of generic list class:
Visual Basic (Declaration) 
Public Function Contains ( _
	item As T _
) As Boolean
 
Visual Basic (Usage) 
Dim instance As List(Of T)
Dim item As T
Dim returnValue As Boolean

returnValue = instance.Contains(item)
Array and List generic classes support a number of methods to make it all easy.
IOW once you write your new "Inlist" you could pass more or less than 26 parameters and they might be string, int, a complex type etc.
I'd write code but you're using VB and I'm using C#:(
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform