>VFP Stored Procedure in the DBC:
>
>Function _spTest
>Lparameters inputString
>Select * from files
>EndFunc
>
>
>The "files" table has 50 rows in it, and running the SP from
>inside the VFP environment shows a cursor with no problem.
>I would think the C# console app would show "50" fifty times but
>instead it shows a "1".
>
>Why would I not get the intended result?
Because VFP SPs are Procedures, just like any other VFP procedures. That function is returning the default value of .T., which C# is translating into "1".
And yes, this really ticked me off too when I found out about it...