Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OleDb Parameters
Message
De
27/09/2004 23:25:09
 
 
À
27/09/2004 21:44:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00946213
Message ID:
00946529
Vues:
28
Which statement is it crashing on and what's the error that you're getting? All you've said is that it's not working, but you haven't said *what's* not working. Have you tried debugging it and stepping through the code?

~~Bonnie


>I tried it too, but still cannot work for me,
>
>
>
>
>String selectCmd = "select * from paperoll where supNo = ?psupNo";
>
>OleDbDataAdapter daPaper = new OleDbDataAdapter(selectCmd, oleDbConnection1);
>
>daPaper.SelectCommand.Parameters.Add(new OleDbParameter("@psupNo",OleDbType.Char,5));
>
>daPaper.SelectCommand.Parameters["@psupNo"].Value = mySelect.Value;
>
>daPaper.Fill(dsPaper, "paperoll");
>
>
>----------------
>
>String selectCmd = "select * from paperoll where supNo = ?psupNo";
>OleDbDataAdapter daPaper = new OleDbDataAdapter(selectCmd, oleDbConnection1);
>
>daPaper.SelectCommand.Parameters.Add(new OleDbParameter("?psupNo",OleDbType.Char,5));
>
>daPaper.SelectCommand.Parameters["?psupNo"].Value = mySelect.Value;
>
>daPaper.Fill(dsPaper, "paperoll");
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform