Upgrading to DataFlex 3.2: Difference between revisions

m
m (→‎Use y2k.pkg: Should have been code not a section heading.)
Line 642: Line 642:
You can keep existing programs running in an older revision of DataFlex until you have all components working in DataFlex 3.2.
You can keep existing programs running in an older revision of DataFlex until you have all components working in DataFlex 3.2.


1. Create separate directories for the runtime files and application files, and separate data and source code in the process.
'''1. Create separate directories for the runtime files and application files, and separate data and source code in the process.'''


For the remainder of this paper we will assume that the directory where your 2.3b license resides is c:\df23 – you can substitute your actual installed directory name and drive letter for c:\df23.
:For the remainder of this paper we will assume that the directory where your 2.3b license resides is c:\df23 – you can substitute your actual installed directory name and drive letter for c:\df23.


c:\df23 - original 2.3b directory
: c:\df23 - original 2.3b directory
              - 2.3 runtime files will remain here
::- 2.3 runtime files will remain here
              - a copy of the source code files will remain here to be used with 2.3
::- a copy of the source code files will remain here to be used with 2.3


c:\app - directory for your application files
: c:\app - directory for your application files
                \data - data files to be shared between revisions 2.3 and 3.2 (subdirectory of \app)
::\data - data files to be shared between revisions 2.3 and 3.2 (subdirectory of \app)
                \src - source code files to be used with 3.2 (subdirectory of \app)
::\src - source code files to be used with 3.2 (subdirectory of \app)


Separating your existing 2.3b directory this way will give you numerous operating options:
:Separating your existing 2.3b directory this way will give you numerous operating options:


Concurrently run DataFlex 2.3b and 3.2 (or just 3.2)
::1. Concurrently run DataFlex 2.3b and 3.2 (or just 3.2)
Have an existing directory structure to easily upgrade to Visual DataFlex
::2. Have an existing directory structure to easily upgrade to Visual DataFlex


A. Files to be moved into c:\app\data directory:
:::A. Files to be moved into c:\app\data directory:


:all data files for your application (*.dat, *.k*, *.tag, *.fd, *.def)
:::*all data files for your application (*.dat, *.k*, *.tag, *.fd, *.def)
filelist.cfg
:::*filelist.cfg


B. Files to be copied into c:\app\src directory:
:::B. Files to be copied into c:\app\src directory:


One copy of the source code can remain in \df23 for use with (and to keep up) currently running 2.3b applications, and one copy will go into this directory for use with the new 3.2 version.
::::One copy of the source code can remain in \df23 for use with (and to keep up) currently running 2.3b applications, and one copy will go into this directory for use with the new 3.2 version.


:all source code files (*.frm, *.src, *.inc, *.rpt, …)
:::*all source code files (*.frm, *.src, *.inc, *.rpt, …)


C. Files to remain in c:\df23 (runtime) directory:
:::C. Files to remain in c:\df23 (runtime) directory:


the most important are the executable files (*.exe) and termlist.cfg
:::*the most important are the executable files (*.exe) and termlist.cfg
see Appendix A for a complete list of files that are installed by a DataFlex 2.3b Development License – these are the files that should remain in the c:\df23 directory
:::*see Appendix A for a complete list of files that are installed by a DataFlex 2.3b Development License – these are the files that should remain in the c:\df23 directory


2. Install 3.2 into a separate directory and install your DataFlex 3.2 registration code
'''2. Install 3.2 into a separate directory and install your DataFlex 3.2 registration code'''


For the remainder of this paper we will assume that the directory where your 3.2 license resides is c:\df32 – you can substitute your actual installed directory name and drive letter for c:\df32.
:For the remainder of this article we will assume that the directory where your 3.2 license resides is c:\df32 – you can substitute your actual installed directory name and drive letter for c:\df32.


Note:
:'''Note:'''


DOS/Windows: Remember to execute the c:\df32\usr\setpath.bat batch file before running DFSetup.exe to install your registration code.
*DOS/Windows: Remember to execute the c:\df32\usr\setpath.bat batch file before running DFSetup.exe to install your registration code.
Linux/Unix: Remember to execute the /usr/local/df32/usr/setpath script before running dfsetup to install your registration code.
*Linux/Unix: Remember to execute the /usr/local/df32/usr/setpath script before running dfsetup to install your registration code.


3. Concurrently Running DataFlex 2.3b and 3.2
'''3. Concurrently Running DataFlex 2.3b and 3.2'''


A. Running DataFlex 3.2
:A. Running DataFlex 3.2


1. Edit the c:\df32\usr\dfenv.cfg file:
::1. Edit the c:\df32\usr\dfenv.cfg file:


Change the DFPATH= statement to include the c:\app\data directory
::Change the DFPATH= statement to include the c:\app\data directory


Before:
::Before:


dfpath=.;c:\df32\usr;c:\df32\usr\help;c:\df32\lib;c:\df32\bin;c:\df32\src\pkg;c:\df32\usr\examples\expense;c:\df32\usr\examples\dar;c:\df32\usr\examples\ordentry;c:\df32\usr\examples\big;c:\df32\usr\examples\report;c:\df32\usr\examples\data;
:::dfpath=.;c:\df32\usr;c:\df32\usr\help;c:\df32\lib;c:\df32\bin;</br>c:\df32\src\pkg;c:\df32\usr\examples\expense;</br>c:\df32\usr\examples\dar;c:\df32\usr\examples\orderentry;</br>c:\df32\usr\examples\big;c:\df32\usr\examples\report;</br>c:\df32\usr\examples\data;


After:


dfpath=.;c:\app\data;c:\df32\usr;c:\df32\usr\help;c:\df32\lib;c:\df32\bin;c:\df32\src\pkg;c:\df32\usr\examples\expense;c:\df32\usr\examples\dar;c:\df32\usr\examples\ordentry;c:\df32\usr\examples\big;c:\df32\usr\examples\report;c:\df32\usr\examples\data;
::After:


Note: the DFPath statements above may appear different depending on the software you use to view or print this document, but each DFPath statement is a single continuous statement.
:::dfpath='''.;c:\app\data;'''c:\df32\usr;c:\df32\usr\help;c:\df32\lib;</br>c:\df32\bin;c:\df32\src\pkg;c:\df32\usr\examples\expense;</br>c:\df32\usr\examples\dar;c:\df32\usr\examples\orderentry;</br>c:\df32\usr\examples\big;c:\df32\usr\examples\report;</br>c:\df32\usr\examples\data;


2. Switch to c:\app\src directory
::'''Note:''' the DFPath statements above may appear different depending on the software you use to view or print this document, but each DFPath statement is a single continuous statement.
3. Execute c:\df32\usr\setpath.bat
4. Run DataFlex (dfrun programname, dfcomp, dfquery, etc.)


Note: You may want to use different dfenv.cfg files for different applications so that you can place numerous application specific environment variables into each file.
::2. Switch to c:\app\src directory
::3. Execute c:\df32\usr\setpath.bat
::4. Run DataFlex (dfrun programname, dfcomp, dfquery, etc.)


B. Running DataFlex 2.3b
::'''Note:''' You may want to use different dfenv.cfg files for different applications so that you can place numerous application specific environment variables into each file.


*Switch to c:\df23 directory
:B. Running DataFlex 2.3b
*Set the DFPATH environment variable:
 
*set DFPATH=.;c:\app\data
#Switch to c:\df23 directory
*Make sure c:\df23 is in your PATH environment variable
#Set the DFPATH environment variable - '''set DFPATH=.;c:\app\data'''
*Run DataFlex (dfrun ProgramName, dfcomp, dfquery, etc.)
#Make sure c:\df23 is in your PATH environment variable
#Run DataFlex (dfrun ProgramName, dfcomp, dfquery, etc.)


== Moving on to Visual DataFlex ==
== Moving on to Visual DataFlex ==