Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Stored Procedure with two parameters
Message
De
13/10/2010 10:44:56
 
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01485066
Message ID:
01485321
Vues:
22
>>>>>
>>>>>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
>
>How will it work, if you have:
>
>void Something(params int[] nums, bool PerformSomething)

Just reposted, now this shows up :-{
Anyway the answer is that you can't - the array has to be the last parameter.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform