Click here to Skip to main content
15,886,065 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Error Occurs while calling mysql Stored Procedure.

What I have tried:

Uninstall in install a fresh fremework 4.5.2
Please Help me it takes too much time. to resolve
Posted
Updated 9-Mar-23 19:22pm
v2
Comments
Member 15627495 10-Mar-23 1:21am    
sb.AppendFormat("3) {0}, {1}, {2}", var1, var2, var3)
// the format for the output string is between "...." , all required vars follow with a ',' as separator.
// sb.AppendFormat( "{location_value_0}  { location_value_1 }" , value_0 , value_1 ) ;

Without seeing your actual code, we can't tell you specifically what to do.

So start here: How to Write Code to Solve a Problem, A Beginner's Guide Part 2: Syntax Errors[^]
And see if you can extract the relevant info from the error message.

Then if you still can't solve it, you at least know what you need to tell us so we can help!

Sorry, but we can't do that for you!
 
Share this answer
 
Comments
Praful Karkar 10-Mar-23 5:08am    
it's not about any syntex error it's framework issue and solved now thanks for reply
Try this example from: StringBuilder.AppendFormat Method (System.Text) | Microsoft Learn[^]
And see if it runs:

using System;
using System.Text;
using System.Globalization;

class Sample
{
    static StringBuilder sb = new StringBuilder();

    public static void Main()
    {
    int    var1   = 111;
    float  var2   = 2.22F;
    string var3   = "abcd";
    object[] var4 = {3, 4.4, 'X'};

    Console.WriteLine();
    Console.WriteLine("StringBuilder.AppendFormat method:");
    sb.AppendFormat("1) {0}", var1);
    Show(sb);
    sb.AppendFormat("2) {0}, {1}", var1, var2);
    Show(sb);
    sb.AppendFormat("3) {0}, {1}, {2}", var1, var2, var3);
    Show(sb);
    sb.AppendFormat("4) {0}, {1}, {2}", var4);
    Show(sb);
    CultureInfo ci = new CultureInfo("es-ES", true);
    sb.AppendFormat(ci, "5) {0}", var2);
    Show(sb);
    }

    public static void Show(StringBuilder sbs)
    {
    Console.WriteLine(sbs.ToString());
    sb.Length = 0;
    }
}
/*
This example produces the following results:

StringBuilder.AppendFormat method:
1) 111
2) 111, 2.22
3) 111, 2.22, abcd
4) 3, 4.4, X
5) 2,22
*/
 
Share this answer
 
v2
Comments
Praful Karkar 10-Mar-23 5:08am    
it's not about any syntex error it's framework issue and solved now thanks for reply

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900