Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Snorri B. on March 16, 2009, 04:32:44 pm



Title: .42f to .per
Post by: Snorri B. on March 16, 2009, 04:32:44 pm
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


Title: Re: .42f to .per
Post by: . 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
Quote
oim@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.


Title: Re: .42f to .per
Post by: Snorri B. on March 16, 2009, 05:02:54 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


Title: Re: .42f to .per
Post by: . on March 16, 2009, 05:11:06 pm
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.


Title: Re: .42f to .per
Post by: Neil M. on March 18, 2009, 07:07:57 am
Hi Snorri,

I have a simple(ish) genero program that does this. I'll mail it to you.

Regards,
Neil


Title: Re: .42f to .per
Post by: . on March 24, 2009, 07:30:27 am

 Hi Neil,

Please can we have a copy of your program on the forum.

Thanks
Bothwell


Title: Re: .42f to .per
Post by: Neil M. on March 24, 2009, 10:25:59 am
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.