pass contents to C#

hi! this is sort of connected to my other post regarding Foxpro and C#..

in the foxpro program i will type in a name and when i call the C# program it will also contain the name entered in the foxpro program. is this possible How can i do this

thanks!



Answer this question

pass contents to C#

  • mamo

    From C#, you use ADO.NET, connect to the database that contains the data and query it. There is nothing to it, and it is not related to VFP.

    A SQL Server database is a repository of data. Which client you use to access that data is immaterial to SQL Server. So it is perfectly OK to insert data from a VFP front-end and retrieve it from C# as you want to do.

    If you are unfamiliar with C# and ADO.NET, there are forums here for them where you can ask about the SQLServer OleDB provider in .NET


  • hazz

    Don't know the "other thread" (maybe you should've resumed it here or posted a link to it )

    If I understand you correctly, you type a name in a control in a form in VFP and want to see that in a C# program

    • If it is saved in a table (dbf), you can read it from C# with OleDB (ADO.NET)
    • If saved in an external file (e.g. XML) it is easy to read from C# with XML classes
    • You can also run a VFP routine from C# using COM (if prepared that way) but this may be overkill.

    HTH


  • kemal

    The title of the other thread is FoxPro and C#..

    anyway, the entered value is stored in a database (SQL). It would be passed on to C# but it is running on a different database.


  • pass contents to C#