Enhancement to config
Stuff mainly to adress run regeneration of FoxBin2Prg out of itself
This commit is contained in:
@@ -24,6 +24,11 @@ _**Note:** you can click on the version number for downloading this version from
|
||||
|
||||
| Rel.Date | Developer | Version | Details |
|
||||
| - | - | - | - |
|
||||
| 2023/08/30 | LScheffler | [v1.20.01](https://github.com/fdbozzo/foxbin2prg/releases/tag/v1.20.01) | **Bug Fix**: Some values of config file would not be read, if the inline comment "&&" was not in the line (LScheffler) |
|
||||
| | | | **Bug Fix**: Bug Fix: config file set by parameter would be ignored, if the folder contains FoxBin2Prg.cfg (LScheffler) |
|
||||
| | | | **Bug Fix**: Bug Fix: Fixed problems with table config files (LScheffler) |
|
||||
| | | | **Enhancement**: For config file template new options to set config file and debug added |
|
||||
| | | | **Enhancement**: New option for parameter set config file to control the use of "regular" config files |
|
||||
| 2023/08/27 | LScheffler | [v1.20.00](https://github.com/fdbozzo/foxbin2prg/releases/tag/v1.20.00) | **Enhancement**: Source now ships without binary source files. See [README.md](../README.md) how to regenerate. |
|
||||
| 2023/08/26 | LScheffler | [v1.20.00](https://github.com/fdbozzo/foxbin2prg/releases/tag/v1.20.00) | **Bug Fix**: Issues with form charsets ( national letters in form and controls Caption field) (KestasL) <br /> This fixes also: Forms with ole controls conversion error (also: any vcx) #95 (KestasL) |
|
||||
| | | | **Enhancement**: Added option to return version number |
|
||||
|
||||
@@ -22,6 +22,16 @@ As far as possible these are the original documents. Changes are added where fun
|
||||
## Source
|
||||
Original repository at https://github.com/lscheffler/foxbin2prg.
|
||||
|
||||
## Download
|
||||
Regenerate after download / clone / pull from https://github.com/lscheffler/foxbin2prg.
|
||||
**Note: If you have cloned the project, you must run it against itself to create the binaries and exes.**
|
||||
Run
|
||||
```
|
||||
CD "path_to_FoxBin2Prg"
|
||||
*This uses a special configuration
|
||||
DO ReCreate_FoxBin2Prg.prg
|
||||
```
|
||||
|
||||
## Requirements
|
||||
- A copy of MS VFP9 SP1, at least _3504_
|
||||
- Runs with VFPA (Note, you need to recompile the EXE or use the PRG)
|
||||
|
||||
@@ -110,10 +110,12 @@ These are the FoxBin2Prg.cfg configuration file settings and their meaning:
|
||||
| ShowProgressbar | 0, _1_, 2 | 0=Don't show progressbar,<br/>1=Always show a progress bar,<br/>2=Only show it when processing multiple-files |
|
||||
| DontShowErrors | _0_, 1 | 0=show message errors in a modal messagebox. (default)<br/>1=don't show errors |
|
||||
| ExtraBackupLevels | 0, _1_, n | <br/>0=No backup<br/>1=One backupfile _\_filename\_.BAK_ (default)<br/>n=n levels of backup in style _\_filename\_.n.BAK_ |
|
||||
| Debug | _0_, 1, 2 | 0=Off<br/>1=Normal<br/>2=Extended<br/>By default, don't generate individual <file>.Log with process hints.<br/>Activate with "1" to find possible error causes and for debugging,<br/>"2" is special logging |
|
||||
| BackgroundImage | <cFile> | Backgroundimage for process form |
|
||||
| Debug | _0_, 1, 2 | 0=Off<br/>1=Normal<br/>2=Extended<br/>By default, don't generate individual \<file\>.Log with process hints.<br/>Activate with "1" to find possible error causes and for debugging,<br/>"2" is special logging |
|
||||
| BackgroundImage | \<cFile\> | Backgroundimage for process form |
|
||||
| HomeDir | 0, _1_ | 0=don't save HomeDir in PJ2,<br/>1=save HomeDir in PJ2.<br/>Setting this to 0 prevents the PJ2 file from changing just because two developers have the project in different folders |
|
||||
|||
|
||||
| AllowInheritance | 0, _1_ | 0=Not allow scanning "regular" config files,<br/>1=Allow scanning "regular" config files.<br/>This is valid only for config files that are parameters of FoxBin2Prg. |
|
||||
|||
|
||||
| XXX_Conversion_Support | n | Defines the conversion operation per filetype |
|
||||
| | | For code:<br/> 0=No support,<br/>1=Generate _Text_ (Diff),<br/>2=Generate _Text_ and _Bin_ (Merge) |
|
||||
| | | For complex data:<br/> (PJX / DBC / DBF): 0=No support,<br/>1=Generate Header _Text_ only (Diff),<br/>2=Generate Header _Text_ and _Bin_ (Merge/Only Structure!),<br/>4=Generate _Text_ with DATA (Diff),<br/>8=Export and Import DATA (Merge/Structure & Data) |
|
||||
@@ -256,7 +258,7 @@ Views and Relations. All this to minimize the differences when diffing DBCs that
|
||||
</FIELD_ORDER>
|
||||
````
|
||||
### PAM Section
|
||||
This section is generated for classes and forms, it is delimited with the <DefinedPropArrayMethod> tag,
|
||||
This section is generated for classes and forms, it is delimited with the \<DefinedPropArrayMethod\> tag,
|
||||
and have the definition of Properties, Arrays and Methods, with their comments, like this example:
|
||||
````
|
||||
DEFINE CLASS c1 AS custom OLEPUBLIC && Description of "c1" class
|
||||
@@ -344,7 +346,7 @@ Example of multiple file masks (separte with ","):
|
||||
````
|
||||
|
||||
### Configuration per table
|
||||
New <filename.dbf.cfg> configuration options. See [Configuration file per table](#configuration-file-per-table).
|
||||
New \<filename.dbf.cfg> configuration options. See [Configuration file per table](#configuration-file-per-table).
|
||||
|
||||
These options can be used in any combination inside a dbf particular cfg file,
|
||||
if you create a text file using your dbf filename and adding ".cfg".
|
||||
@@ -740,4 +742,4 @@ For options on integrating FoxBin2Prg with SCM tools, look at this topic:
|
||||
See [FoxBin2Prg and use with git](./FoxBin2Prg_git.md)
|
||||
|
||||
----
|
||||
Last changed: _2023/08/26_
|
||||
Last changed: _2023/08/30_
|
||||
@@ -93,7 +93,7 @@ just select and process each one independently, in parallel if you like, but in
|
||||
| cRecompile | 0, _1_ | Indicates recompile ('1') the _Binary_ once generated. <br/> True if called from SCCAPI (SCCTEXT.PRG) compatibility mode. |
|
||||
| | path | The _Binary_ is compiled from this path |
|
||||
| cNoTimestamps | 0, _1_ | Indicates if timestamp must be cleared ('1' or empty) or not ('0') |
|
||||
| cCFG_File | filename | Indicates a CFG filename for not using the default on foxbin2prg directory or path. |
|
||||
| cCFG_File | filename | Indicates a special CFG filename for default values.<br/>Note, if the "regular" config files are used or not, is controlled by the setting *AllowInheritance* in *this** file. |
|
||||
| cOutputFolder | folder | Optional. A folder to write the output to. If not used, output be the source path. |
|
||||
|
||||
#### Note #1
|
||||
@@ -108,8 +108,8 @@ on which fixed parameters must be in the shortcut.
|
||||
The filename is an external variable parameter received when SendingTo FoxBin2Prg with right-click on File Manager.
|
||||
|
||||
### Usage 2
|
||||
`FoxBin2Prg.EXE [cCt [cOutputFile]]`
|
||||
`DO FoxBin2Prg.EXE WITH ["-cCt" [,cOutputFile]]`
|
||||
`FoxBin2Prg.EXE c|C|t [OutFileName [ cCFG_File[ cDebug]]]`
|
||||
`DO FoxBin2Prg.EXE WITH -c|-C|-t [, OutFileName [, cCFG_File[, cDebug]]]`
|
||||
|
||||
| Parameter | Description |
|
||||
| ----- | ----- |
|
||||
@@ -118,7 +118,18 @@ The filename is an external variable parameter received when SendingTo FoxBin2Pr
|
||||
| -C (C) | creates a config-file _cOutputFile_ ( like FOXBIN2PRG.CFG ) with the recent options used on the path of cOutputFile |
|
||||
| | If cOutputFile is empty, a file FOXBIN2PRG.\_CFG will be created in default foder. |
|
||||
| -t (t) | creates a template table-config-file _cOutputFile_ ( like \_TableName\_.dbf.cfg ) |
|
||||
| | If cOutputFile is empty and a table is open is workarea, a file \<tablename\>.CFG will be created in table foder. |
|
||||
| cCFG_File | Indicates a special CFG filename for default values<br/>Note, if the "regular" config files are used orn not, is controlled by the setting *AllowInheritance* in *this** file. |
|
||||
| cDebug | '1' for generating process LOGs, stop on errors |
|
||||
|
||||
### Usage 3
|
||||
`FOXBIN2PRG.EXE VERNO`
|
||||
`DO FOXBIN2PRG.EXE WITH "VERNO"|cPara`
|
||||
|
||||
| Parameter | Description |
|
||||
| ----- | ----- |
|
||||
| -VERNO (VERNO) | Return version number of FoxBin2Prg |
|
||||
| cPara | A parameter with the Value "VERNO", the version number is returned to this parameter |
|
||||
|
||||
|
||||
#### Note
|
||||
From command line the call with paramters like -c, -C -t is not possible. Those parameters will be removed by VFP itself.
|
||||
@@ -167,4 +178,4 @@ FoxBin2Prg - Text2Binary.lnk <path>\foxbin2prg.exe "PRG2BIN-SHOWMSG"
|
||||
FoxBin2Prg.lnk <path>\foxbin2prg.exe "INTERACTIVE-SHOWMSG"
|
||||
```
|
||||
----
|
||||
Last changed: _2023/08/26_
|
||||
Last changed: _2023/08/30_
|
||||
@@ -288,30 +288,34 @@ If I have to checkout old stuff - the setting will fit.
|
||||
````
|
||||
*################################################################################################################
|
||||
*FOXBIN2PRG.CFG configuration options: (If no values given, these are the DEFAULTS)
|
||||
*Version: v1.19.69
|
||||
*Version: v1.20.01
|
||||
*****************************************************************************************************************
|
||||
|
||||
* Note, configuration files will follow an inheritance.
|
||||
* 1. Default values
|
||||
* 2., optional FOXBIN2PRG.CFG in folder of FOXBIN2PRG.EXE
|
||||
* or, if defined, a config file given by a parameter calling FOXBIN2PRG
|
||||
* if used, the AllowInheritance setting controls if other config files will be evaluated
|
||||
* 3., optional FOXBIN2PRG.CFG in root of working directory
|
||||
* 4., optional FOXBIN2PRG.CFG in every folder up to the working directory
|
||||
* 5., optional Special settings per aingle DBF's Syntax: <Tabellenname>.dbf.cfg in tables folder)
|
||||
* 6., Parameter calling FOXBIN2PRG.EXE.
|
||||
* 5., optional Special settings per single DBF's Syntax: <TableName>.dbf.cfg in tables folder)
|
||||
|
||||
* Some Parameter calling FOXBIN2PRG.EXE overturn this settings (except Defaults)
|
||||
*****************************************************************************************************************
|
||||
|
||||
*-- Settings for internal work, not processing
|
||||
*Language: (auto) && Language of shown messages and LOGs. EN=English, FR=French, ES=Espa<70>ol, DE=German, Not defined = AUTOMATIC [DEFAULT]
|
||||
*ShowProgressbar: 1 && 0=Don't show, 1=Allways show, 2= Show only for multi-file processing
|
||||
*ShowProgressbar: 1 && 0=Don't show, 1=Allways show, 2=Show only for multi-file processing
|
||||
*DontShowErrors: 0 && Show message errors by default
|
||||
*ExtraBackupLevels: 1 && By default 1 BAK is created. With this you can make more .N.BAK, or none
|
||||
*Debug: 0 && Don't Activate individual <file>.Log by default
|
||||
*BackgroundImage: <cFile> && Backgroundimage for process form. Empty for empty Background. File not found uses default.
|
||||
*HomeDir: 1 && Home Directory in PJX
|
||||
*HomeDir: 1 && Home directory in PJX
|
||||
* && 0 don't save HomeDir in PJ2
|
||||
* && 1 save HomeDir in PJ2
|
||||
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*-- Settings for config file via parameter only
|
||||
*AllowInheritance: 1 && 0=Not allow, 1=Allow scanning "regular" config files
|
||||
*----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
*-- Conversion operation by type
|
||||
@@ -327,6 +331,14 @@ If I have to checkout old stuff - the setting will fit.
|
||||
*MEM_Conversion_Support: 1 && 0=No support, 1=Generate TXT only (Diff)
|
||||
*----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
*Setting for pjx files
|
||||
*CheckFileInPath: 0 && Determines 2Txt deals with files not in the subfolders of the PJX. No handler for UNC paths.
|
||||
* && 0 Ignore. Default
|
||||
* && 1 Check and error out if file is not on same structure (for source control)
|
||||
* && 2 Create absolute path if file is on different drive.
|
||||
* && 3 Create absolute path if file is not in structure
|
||||
*----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
*Setting for container files (not pjx)
|
||||
*-- CLASS and FORM options (tx2 is to read as vc2 or sc2, VCX might be SCX)
|
||||
*- Class per file options (UseClassPerFile: 1)
|
||||
@@ -369,7 +381,7 @@ If I have to checkout old stuff - the setting will fit.
|
||||
*NoTimestamps: 1 && Clear timestamps of several file types by default for minimize text-file differences
|
||||
*ClearUniqueID: 1 && 0=Keep UniqueID in text files, 1=Clear Unique ID. Useful for Diff and Merge
|
||||
*OptimizeByFilestamp: 0 && 1=Optimize file regeneration depending on file timestamp. Dangerous while working with branches!
|
||||
*RemoveNullCharsFromCode: 1 && 1=Drop NULL chars from source code
|
||||
*RemoveNullCharsFromCode: 1 && 1=Drop .Null. chars from source code
|
||||
*RemoveZOrderSetFromProps: 0 && 0=Do not remove ZOrderSet property from object, 1=Remove ZOrderSet property from object
|
||||
*PRG_Compat_Level: 0 && 0=Legacy, 1=Use HELPSTRING as Class Procedure comment
|
||||
*----------------------------------------------------------------------------------------------------------------
|
||||
@@ -401,13 +413,6 @@ If I have to checkout old stuff - the setting will fit.
|
||||
*-- Additional extensions
|
||||
*extension: fk2=fkx && Text file to FKY
|
||||
*extension: me2=fkx && Text file to MEM
|
||||
*
|
||||
*Settings changed
|
||||
*----------------
|
||||
UseClassPerFile: 2 && 0=One library tx2 file, 1=Multiple file.class.tx2 files, 2=Multiple file.baseclass.class.tx2 files
|
||||
RedirectClassPerFileToMain: 1 && 0=Don't redirect to file.tx2, 1=Redirect to file.tx2 when selecting file.class.tx2
|
||||
DBF_Conversion_Support: 0 && 0=No support, 1=Generate Header TXT only (Diff), 2=Generate Header TXT and BIN (Merge/Only Structure!), 4=Generate TXT with DATA (Diff), 8=Export and Import DATA (Merge/Structure & Data)
|
||||
DBC_Conversion_Support: 0 && 0=No support, 1=Generate TXT only (Diff), 2=Generate TXT and BIN (Merge)
|
||||
````
|
||||
All use off this are the last four lines. But I like to keep the template (recent as version 1.19.69).
|
||||
- Using single classes - because it's much more easy to merge a single class then a whole library.
|
||||
@@ -419,4 +424,4 @@ All use off this are the last four lines. But I like to keep the template (recen
|
||||
This project is part of [VFPX](https://vfpx.github.io/).
|
||||
|
||||
----
|
||||
Last changed: _2023/03/20_ 
|
||||
Last changed: _2023/03/30_ 
|
||||
Reference in New Issue
Block a user