Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# connecting to Fox Free Table
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00729877
Message ID:
00746327
Views:
19
>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...
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform