Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Found error, doesn't make sense
Message
From
03/05/2019 12:10:08
 
 
To
03/05/2019 12:06:54
General information
Forum:
C#
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01668386
Message ID:
01668388
Views:
55
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform