added fixes
added modifications
added documentation
for changes see README.md or foxbin2prg.prg

intended to be merged to https://github.com/fdbozzo/foxbin2prg/
This commit is contained in:
Lutz
2021-02-22 20:25:02 +01:00
parent 17cc4939f0
commit 0f7c2875f6
6 changed files with 87 additions and 11 deletions

11
Documentacion/github/.gitignore vendored Normal file
View File

@@ -0,0 +1,11 @@
# we use the exclude-all-include-special approach, easier then excluding any odd stuff later
#exclude general
*.*
#include general
# docs
!*.md
#include special
#default git
!*.gitignore

View File

@@ -32,11 +32,12 @@ _**Note:** you can click on the version number for downloading this version from
| Rel.Date | Developer | Version | Details |
| - | - | - | - |
| 21/02/2021 | Lutz Scheffler | | added option to create config file template |
| 21/02/2021 | Lutz Scheffler | | Documentation from CodePlex integrated |
| | Lutz Scheffler | | added option to create config file template |
| | Lutz Scheffler | | Info screen-doc improved |
| | Lutz Scheffler | | German translation improved |
| 20/02/2021 | Lutz Scheffler | | inserted option DBF_IncludeDeleted to allow including deleted records of DBF |
| 19/02/2021 | Lutz Scheffler | | inserted option DBF_BinChar_Base64 to allow processing of NoCPTrans fields in non base64 way |
| | Lutz Scheffler | | the three above are straight forward, so no extra comment ar within the code |
| 15/02/2021 | Lutz Scheffler | | inserted option ItemPerDBCCheck to split DBC processing from vcx / scx |
| | Lutz Scheffler | | inserted option RedirectFilePerDBCToMain to split DBC processing from vcx / scx |
| 14/02/2021 | Lutz Scheffler | | inserted option UseFilesPerDBC to split DBC processing from vcx / scx |

View File

@@ -0,0 +1,12 @@
# we use the exclude-all-include-special approach, easier then excluding any odd stuff later
#exclude general
*.*
#include general
#grafics
!*.gif
!*.png
#include special
#default git
!*.gitignore

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 B

View File

@@ -1,3 +1,57 @@
# FoxBin2Prg v1.19.xx - Binary/Text Converting program for Microsoft Visual FoxPro 9
![](https://vfpx.github.io/images/vfpxbanner_small.gif)
## <span style="background-color: gold;">This fork</span>
<span style="background-color: lemonchiffon;"> This is a fork of [Fernando D. Bozzo](https://github.com/fdbozzo) [foxbin2prg](https://github.com/fdbozzo/foxbin2prg/).
It's main purpose it's to fix some bugs and recreate the documentation this project had on CodePlex.
There was a need of some functionality too. Some off the mods may ore may not seen as bug fixes. </span>
<span style="background-color: lemonchiffon;"> To get the new settings in config file, use the new create-a-template function:</span>
```
DO FOXBIN2PRG.PRG WITH "-c","template.cfg" ==> Generates a template for FoxBin2Prg.cfg config file with newest settings
DO FOXBIN2PRG.PRG WITH "-t","template.dbf.cfg" ==> Generates a template for table.dbf.cfg per table config file with newest settings
```
<span style="background-color: lemonchiffon;"> The major break is the split of the handling of DBC from VCX/SCX.
If DBC's where splited into single files using _UseClassPerFile_,
the new settings around _UseFilesPerDBC_ must be used. See [Intenals](./Documentacion/github/FoxBin2prg_Internals.md#configuration-file).
<span style="background-color: lemonchiffon;"> The function _DBF_BinChar_Base64: 0_ must be handled with care too.
Tables must converted to _Text_ according. **It's not recommended for running projects.**</span>
<span style="background-color: lemonchiffon;">The data added by _DBF_IncludeDeleted: 1_ will be ignored by old versions.
</span>
<span style="background-color: lemonchiffon;"> It's a good idea to have the FoxBin2Prg.cfg per projekt and and source control anyway, old commits / versions would have the old config.
So teh settings would fit the data.</span>
### <span style="background-color: gold;">Fixes (fixes only are in the fork branch of this repo)</span>
| Details |
| - |
| conversion prg -> vcx, files per class could create one class multiple times |
| processing directory, flush log file after loop instead of file |
| conversion prg -> dbf, fields with .NULL. value are incorectly recreated |
| minor translations |
| conversion dbf -> prg, error if only test mode (toFoxBin2Prg.l_ProcessFiles is false) |
### <span style="background-color: gold;">Mods</span>
| Details |
| - |
| Documentation from CodePlex integrated |
| German translation improved |
| Info screen-doc improved |
| inserted option DBF_IncludeDeleted to allow including deleted records of DBF |
| inserted option DBF_BinChar_Base64 to allow processing of NoCPTrans fields in non base64 way |
| inserted option ItemPerDBCCheck to split DBC processing from vcx / scx |
| inserted option RedirectFilePerDBCToMain to split DBC processing from vcx / scx |
| inserted option UseFilesPerDBC to split DBC processing from vcx / scx |
<span style="background-color: lemonchiffon;"> There is a the reworked [documentation](./Documentacion/github/FoxBin2prg.md) from CodePlex available.</span>
---
---
## FoxBin2Prg v1.19.xx - Binary/Text Conversor for Microsoft Visual FoxPro 9
### Fernando D. Bozzo
@@ -10,10 +64,6 @@
Thank you for your support!
## <span style="background-color: gold;">Remark</span>
<span style="background-color: lemonchiffon;">There is an extended [documentation](./Documentacion/github/FoxBin2prg.md) available.
</span>
## ENGLISH/ESPAÑOL
### ENGLISH
@@ -57,11 +107,11 @@ extension: DC2=DCA
### USE:
```
DO FOXBIN2PRG.PRG WITH "<path>\archivo.scx" ==> Generates the TEXT version sc2 extension
DO FOXBIN2PRG.PRG WITH "<path>\archivo.sc2" ==> Regenerates the binary version with scx extension
DO FOXBIN2PRG.PRG WITH "<path>\archivo.scx" ==> Generates the TEXT version sc2 extension
DO FOXBIN2PRG.PRG WITH "<path>\archivo.sc2" ==> Regenerates the binary version with scx extension
DO FOXBIN2PRG.PRG WITH "-c","template.cfg" ==> Generates a template for FoxBin2Prg.cfg config file with newest settings
DO FOXBIN2PRG.PRG WITH "-t","template.dbf.cfg" ==> Generates a template for table.dbf.cfg per table config file with newest settings
DO FOXBIN2PRG.PRG WITH "-c","template.cfg" ==> Generates a template for FoxBin2Prg.cfg config file with newest settings
DO FOXBIN2PRG.PRG WITH "-t","template.dbf.cfg" ==> Generates a template for table.dbf.cfg per table config file with newest settings
```
### USEFUL SETUP:

View File

@@ -236,10 +236,12 @@
* 14/02/2021 Lutz Scheffler inserted option UseFilesPerDBC to split DBC processing from vcx / scx
* 15/02/2021 Lutz Scheffler inserted option RedirectFilePerDBCToMain to split DBC processing from vcx / scx
* 15/02/2021 Lutz Scheffler inserted option ItemPerDBCCheck to split DBC processing from vcx / scx
* the three above are straight forward, so no extra comment ar within the code
* the three above are straight forward, so no extra comment are within the code
* 19/02/2021 Lutz Scheffler inserted option DBF_BinChar_Base64 to allow processing of NoCPTrans fields in non base64 way
* 20/02/2021 Lutz Scheffler inserted option DBF_IncludeDeleted to allow including deleted records of DBF
* 21/02/2021 Lutz Scheffler German translation improved
* 21/02/2021 Lutz Scheffler Info screen-doc improved
* 21/02/2021 Lutz Scheffler added option to create config file template
* 21/02/2021 Lutz Scheffler added option to create config file template