Hi.
Has anyone written a utility to convert .42f file to a .per file? I am aware you can <Save As> in Genero studio, but I need a command line utility.
Best regards,
-Snorri
Hello Snorri
Do you mean 4FD files designed with studio ?
Did you try the studio command line utility provided with studio : gsform
Quoteoim@venezia:~/bin/gst/bin
$ ./gsform --help
Usage: gsform [operation] [options] file1[.4fd] file2[.4fd] ...
Operation (compile by default)
-h : Display this help
-m : extract localized messages
-V : Version information
-c : convert old format 4fd files to new format
Options
-i : Ignore (overwrite) existing .per file
-M : display messages
-keep : Keep intermediate created .per file
-dbname name : dbname to use for form compilation
Option -keep should be what you are looking for.
Quote from: Olivier IMBERT on March 16, 2009, 04:45:37 PM
Hello Snorri
Do you mean 4FD files designed with studio ?
Did you try the studio command line utility provided with studio : gsform
Hi Olivier.
No I was actually referring to .42f files which are generated by
$ fglform file.per
creates file.42f
4FD and 42F are very close each other. If you don't have other answer, may I suggest you to post in Studio forum to see if there is a simple way to transform 42F to 4FD and thus use gsform to generate PER.
Hi Snorri,
I have a simple(ish) genero program that does this. I'll mail it to you.
Regards,
Neil
Hi Neil,
Please can we have a copy of your program on the forum.
Thanks
Bothwell
A simple(ish) genero program that takes a compiled .42f file and creates a .per.
This was written originally to convert Informix or BDS .per files that have been just compiled
with Genero and convert them to Genero syntax .per files.
It's a semi working example, I used it quite a bit of the years. Should compile with Genero 1.3x or higher.
Never tested on Windows - only Linux and Unix.
Should be simple enough now with 2.11 to improve it to make it work on any platform.
Currently it's not able to convert properly full genero forms back from .42f to .per.
Note in MAIN:
LET conv_labs = FALSE -- Convert static text to dynamic labels.
LET ignore_genero_forms = TRUE -- If it contains LAYOUT ignore it.