1

Konu: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

Compressed file: VFPToolkitNET.ZIP
Application: Visual FoxPro Toolkit for .NET
Author: Kamal Patel (kppatel@yahoo.com)
Copyright: None (Public Domain)
Date: April 24th, 2002
Version 1.00

All source code and documentation contained in Visual FoxPro Toolkit for .NET
(VFPToolkitNET.ZIP) has been placed into the public domain.  You may use, modify,
copy, distribute, and demonstrate any source code, example programs, or
documentation contained in VFPToolkitNET.ZIP freely without copyright protection.
All files contained in VFPToolkitNET.ZIP are provided 'as is' without warranty of
any kind.  In no event shall its authors, contributors, or distributors be liable
for any damages.

Questions and discussion for the VFP Toolkit for .NET are online on the UT (http://www.universalthread.com) in the .NET Forum in a category called Visual FoxPro Toolkit for .NET.  Please post questions, ideas, enhancements requests, etc. in this section on the UT.

Visual FoxPro Toolkit for .NET Team:
    - Kamal Patel (Lead Developer, Creator)
    - Cathi Gero (Program Manager)
    - Rick Hodder (Help)
    - Nancy Folsom (Reviewer, Evangelist)
    - Ken Levy (Advisor, Communications)

Installing and using the VFP Toolkit for .NET
---------------------------------------------

The Visual FoxPro Toolkit for .NET ("Toolkit") is a class library that implements Visual FoxPro
function names for use in Visual Basic .NET and C# .NET projects. In order to use the Toolkit in
Visual Studio .NET projects, first install the Toolkit and then add the Toolkit as a reference
to your .NET projects.


Install the VFP Toolkit for .NET
-----------------------------------

1. Extract the files contained in this zip file to C:\VFPToolkitNET directory.
2. From File Explorer, double-click on the Setup.BAT file. 


Add a reference to the VFPToolkitNET assembly to your Visual Studio .NET project
--------------------------------------------------------------------------------

1. Create a new project in Visual Studio .Net.
2. In Solution Explorer, right click on References and select "Add Reference".
3. Under the .Net tab, select "Visual FoxPro Toolkit for .NET" from the list by double-clicking
   on it. Then click on the Select button. If you do not see the file in the list then click on the
   Browse button and pick the VFPToolkitNET.dll file from C:\VFPToolkitNET.
4. Click on the OK button. This will add a reference to the Toolkit to your project.

The Toolkit is a class library with methods that correspond to FoxPro functions. How you use them differs depending on the .NET language you are using.
   
   In Visual Basic .NET
   --------------------   
   1. In the Solution Explorer, right-click on your project and select "Properties."
   2. Select Common Properties / Imports from the listing on the left.
   3. In the Namespace textbox, type each line below. After each entry click on the Add Import
      button:

        VFPToolkit.arrays
        VFPToolkit.dates
        VFPToolkit.dialogs
        VFPToolkit.common
        VFPToolkit.environment
        VFPToolkit.files
        VFPToolkit.help
        VFPToolkit.math
        VFPToolkit.strings
        VFPToolkit.vfpData
   
   4. Click on OK to save your changes.
   
   Alternatively, you can paste the following code into the top of your class module
   (?Module1.vb,? for example):
 
        Imports VFPToolkit.arrays
        Imports VFPToolkit.dates
        Imports VFPToolkit.dialogs
        Imports VFPToolkit.common
        Imports VFPToolkit.environment
        Imports VFPToolkit.files
        Imports VFPToolkit.help
        Imports VFPToolkit.math
        Imports VFPToolkit.strings
        Imports VFPToolkit.vfpData

   5. Use the commands in the same you would in Visual FoxPro.
      For example:

        dim lcContents as String
        lcContents = GetFile()


   In C# .NET
   ----------
   1. Add the following using statement to the top of your class module
      (?Class1.cs,? for example):

        using VFPToolkit;

      Or, you can specify aliases to each of the Toolkit's class wrappers (see below,
      "About the VFPToolkitNET.dll").
   
      For example:

        using VfpDialogs = VFPToolkit.dialogs;
        using VfpArrays = VFPToolkit.arrays;
        using VfpDates = VFPToolkit.dates;
        using VfpDialogs = VFPToolkit.dialogs;
        using VfpCommon = VFPToolkit.common;
        using VfpEnvironment = VFPToolkit.environment;
        using VfpFiles = VFPToolkit.files;
        using VfpHelp = VFPToolkit.help;
        using VfpMath = VFPToolkit.math;
        using VfpStrings = VFPToolkit.strings;
        using VfpData = VFPToolkit.vfpData;

   2. Using the commands in C# is different than in VB .NET or in Visual FoxPro.

      Reference the namespace followed by the class name followed by the function name.
      For example:

        string lcContents;
        lcContents = VFPToolkit.dialogs.GetFile();

      Or, reference the the class name followed by the function name, if there isn't a namespace conflict.
      For example:

        string lcContents;
        lcContents = dialogs.GetFile();

      Alternately, if you specified an alias in the using command, you can abbreviate the call.
      For example:

        using VfpDialogs = VFPToolkit.dialogs;
        ...
            string lcContents;
        lcContents = VfpDialogs.GetFile();


About the VFPToolkitNET.dll
---------------------------
The VFPToolkitNET.dll is a library of class that "wrap" FoxPro-like functions. They are:

. arrays
. dates
. dialogs
. common
. environment
. files
. help
. math
. strings
. vfpData

Each of these classes has methods that correspond to FoxPro functions.

2

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

.net tarafindan vfp toollarini kullanmak icin gelistirilmis bir kutuphane ,
madem .net cok iyi neden boyle bir seylere ihtiyac var ?

3

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

Soykan sen .NET kullan demiyor ki adamlar. Ama isterseniz biz böyle bir tool geliştirdik. Alın bakın deneyin kullanın ya da dönüp bakmayın. Kimseyi zorlamıyorlar...

4

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

evet tabiki öyle ama bu bile VFP nin yabana atilamayacagini gosteriyor smile

5

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

Foxpro artık resmi olarak bitti. Ancak şu bir gerçek ki yıl 2015 de olsa inanıyorum ki bizler hala şunu söylüyor olabiliriz. "Foxpro; ne seninle nede sensiz. "

Uğur
-------------------------------------------------------------------------------------------------------------
Hayat bir bisiklete binmek gibidir. Pedalı çevirmeye devam ettiğiniz sürece düşmezsiniz. Claude Peppeer
Kusuru söylenmeyen adam, ayıbını hüner sanır.  Türk Atasözü

6

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

ugurlu2001 yazdı:

Foxpro artık resmi olarak bitti. Ancak şu bir gerçek ki yıl 2015 de olsa inanıyorum ki bizler hala şunu söylüyor olabiliriz. "Foxpro; ne seninle nede sensiz. "


bunu MS da istemeyerekte olsa biliyor ama işine gelmiyor smile

7

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

Soykan,
O toolkit .Net ilk ciktigi zamanlar yazildi. VFPden gecmek isteyenlerin isini kolaylastirmak icin. Icindekiler 100% VFPde calistiklari gibi calismiyor (yani VFPde alinan sonuc ve oradaki sonuc ayni degil - gerci bunu tesadufen UTdeki bir iki soruda farkettim belki sadece bir iki function farklidir) ve 2005 icin optimize degil ama "bunu .Netde nasil yaparim" icin fikir veriyor en azindan.

8

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

vfp den c# a geçen bir amerikalı programcının hikayesini okumuştum. "bu kit i ilk zamanlarda kullanmayı beceremiyorsun, ilerlediğinde de bu kit işine yaramıyor" demişti.

Haksızlıklar karşısında susanlar, dilsiz şeytanlardır!
www.metinemre.com

9

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

Merhaba,
.NET hakkında benimde söylemek istediğim şeyler var. Gerçi Çetin Üstadımız ve Soykan hocamızın yanında bana pek söz düşmez ama er yada geç mutlaka .NET platformuna geçmek zorundayız. C# başta biraz karışık ve çok komplike görünebilir ancak kullanmaya başladıkça ve VFP da olmayan bir takım özellikleri gördükçe insanın inanası gelmiyor.

Ayrıca C# ne kadar gelişmiş yada geliştirilmiş bir platform olursa olsun hiç bir zaman için VFP nun kolay ve sıcak özelliklerini taşıyamıycaktır.

Ek olarak ibrenin yönü .NET i gösteriyor.  Benim gözlemim her gün gelişen .NET platformundan sürekli olarak daha da uzaklaşarak yeni teknolojilerden uzak kalmamak yönünde. İşin birde SQL tarafından güçlendirilmiş sunucu mimarisi kısmı var. O halde herkes şapkasını önüne koyup bugünü ve yarını arasında bir seçim yapmak durumunda. Ya daha yeni bir platform ve gelişmiş teknolojiler için bugün çekilecek bir miktar sıkıntı ve daha parlak bir gelicek (.NET) ya da bugün aynı şekilde devam edip günü kuratarmak, modası - teknolojisi eskimiş bir conceptle beraber karamsar ve endişeli yarınlar...

Ancak şu da bir gerçek, eğer windows desktop uygulamaları geliştiriyorsanız ve VFP işinizi fazla fazla görüyorsa. Uzun bir süre daha devam edilebilir.

Uzun sözün kısası. Ben şu an için ibremi .NET ten yana çevirdim. Tek temennim Microsoft 'un yaptığı hatanın bir an önce farkına varması ve VFP yi eskiden olduğu gibi geliştirmeye devam etmesi ve biz VFP kullanıcılarının yeniden yüzlerini güldürmesi.  Aksi takdirde inanıyorum ki birileri çıkar ve Xbase tabanlı, VFP özelliklerini kapsayan ve .NET özelliklerine sahip bir uygulama geliştirme arabimini çıkarır. Sonra ne mi olur. Microsoft VFP yi desteklemeye kaldığı yerden devam eder ...

Uğur
-------------------------------------------------------------------------------------------------------------
Hayat bir bisiklete binmek gibidir. Pedalı çevirmeye devam ettiğiniz sürece düşmezsiniz. Claude Peppeer
Kusuru söylenmeyen adam, ayıbını hüner sanır.  Türk Atasözü

10

Re: .NET ve VFP ; ilginizi çekerse source, döküman ve tool elimde mevcut.

Birilerinin biryerlerde vfp benzeri ya da daha üstün bir ürün üzerinde çalıştıklarına eminim.
Dünya da pazarı hazır bir program için kim kolları sıvamaz ki. Büyük ihtimalle vfp resmen bittikten sonra bir haber almaya hazır olmalı. smile