codebase for python basic documentation

Python for Windows Basic documentation:



Installation

It is possible to get Codebase for Python up and running on Windows even when you do not have a C compiler installed.

  1. It is assumed that you already have Python2.1 installed in c:\python21 and that it is working correctly
  2. Download codebase from https://www.codebase.com/downloads/windows/cb65.exe You need to purchase codebase to gain access to this window and it can be purchased from https://www.codebase.com/order/
  3. Install Codebase6 into the directory c:\codebase.    I chose the options to include the  the MSV 1.6 support but do not actually have MSVC installed. I installed my version in C:\codebase  I have my Python in installed in c:\python21
  4. Once codebase6 is installed copy:  c:\codbase\DLL32\C4FOX.DLL to c:\python21\C4DLL.DLL
NOTE:  You can actually delete c:\codebase once you have copied the C4DD.DLL but you will probably need to look at their samples so it is not recommended.
  1. Download http://www.dynaset.org/dogusanh/download/Py21CodeBase.zip  and unzip the files.    Once unzipped copy CodeBase.py and CodeBasec.pyd to  c:\python2
  2. Make sure that
    PYTHONPATH includes c:\python21
    PATH       includes c:\python2
  1. Examples showing how to use Python with Codebase are located at http://www.dynaset.org/dogusanh/download/PyExCodeBase.zip   download this directory and unzip it.    I put this in c:\codebase\python\examples
  Copy the following sample files from codebase to the same directory where you unziped the python examples:
copy c:\codebase\cpp\examples\*.dbf c:\codebase\python\examples
copy c:\codebase\cpp\examples\*.cdx c:\codebase\python\examples
copy c:\codebase\cpp\examples\*.fpt   c:\codebase\python\examples
  1. Confirm correct operation by running the following tests.  If these succeed then Codebase is working correctly. 
  • python ex8.py - Creates a table with a couple fields.  After this file runs there should be a new file named NO_FILE.DBF

Getting Started (Tutorial) for Codebase Python





Index of  Example Code





Written by Joseph Ellsworth of Coherity, Inc  July-2002   joe@coherity.com