Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# connecting to Fox Free Table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00729877
Message ID:
00746327
Vues:
21
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform