Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting VFP Free tables
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00614919
Message ID:
00614987
Views:
20
>I know this is probably a rookie question, but how do I get a value from VFP free table from c#? I have VFP7 installed, so I should have access to VFPOLEDB.
>What is the best way to just send a select statement with 1 param and read just one result out? Query would be like:
>
>mFilter = "Some String"
>
>select myValue;
>from myTable;
>where myFilter = ?mFilter
>
>Thanks


Check out this article, its in VB.NET but you can translate the syntax to C#. Just change the connection string and use the ADO style of the parameterized query, not the VFP style:

select myValue
from myTable
where myFilter = ?

and populate the parameter objects like the article describes.


-Dave
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform