Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Stored Procedure with two parameters
Message
De
13/10/2010 10:37:08
 
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01485066
Message ID:
01485309
Vues:
30
>>>
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform