Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Stored Procedure with two parameters
Message
From
13/10/2010 10:37:08
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01485066
Message ID:
01485309
Views:
32
>>>
>>>Anyone can please clarify?
>>
>>I think you were the only one who came up with four parameters (didn't see Frank attempting to use that many...)
>
>Check his post - that's exactly how he invoked this function.

Maybe I missed where he was trying to do this but, to answer your question if a parameter consisting of an array you can either pass in a single dimensioned array or a list or individiual items (assuming they are of the correct type):
void Something(params int[] nums)
{
}
Can be called as:
int[] x = {1, 2, 3};
Something(x);
//or
ShowNumbers (1,2,3);
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform