Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OleDb Parameters
Message
From
30/09/2004 11:23:11
 
 
To
28/09/2004 00:16:44
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00946213
Message ID:
00947534
Views:
23
Did David's or Cetin's replies help? I don't use VFP tables, so I'm not 100% sure of the syntax for adding the OleDbParameters for VFP.

~~Bonnie


>All are fine until I issue
>
> daPaper.Fill(dsPaper, "paperoll");
>
>
>If I using the selectCmd as follow then the daPaper.Fill will work fine.
>
> String selectCmd = "select * from paperoll where supNo = 'PM'";
>
>
>So I suspect I parameter statement got problem :
>
> 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 = "PM";
>
> DataSet dsPaper = new DataSet();
> daPaper.Fill(dsPaper, "paperoll");
>
>
>Could u pls show me a example how to oledbparameter with VFP table?
>
>TIA.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform