Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Found error, doesn't make sense
Message
De
03/05/2019 12:10:08
 
 
À
03/05/2019 12:06:54
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01668386
Message ID:
01668388
Vues:
57
>>Finally found the line of code that's giving the Build issues and it's:
>>
>> SqlParameter ReturnMsg = new SqlParameter("@ReturnMessage", SqlDbType.VarChar, size: 200);
>>
>>Apparently, it doesn't like the ':' after the 'size' keyword.
>>
>>Oddly enough, it has no issues with the same bleedin' line of code in another program and it's the same bleeding code I see in any kind of documentation for stupid output parameters. I'm not seeing the issue - do another set of eyes see anything wrong with it?
>
>I've a really stupid question: Have you checked the preceding line(s) of code?

Lines before and after:
    mycmd.Parameters.AddWithValue("@OtherType", "");
    SqlParameter ReturnMsg = new SqlParameter("@ReturnMessage", SqlDbType.VarChar, size: 200);
    ReturnMsg.Direction = ParameterDirection.Output;
    mycmd.Parameters.Add(ReturnMsg);
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform