Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: .42f to .per  (Read 17205 times)
Snorri B.
Posts: 104


« 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
.
Four Js
Posts: 30


« Reply #1 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.
Snorri B.
Posts: 104


« Reply #2 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
.
Four Js
Posts: 30


« Reply #3 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.
Neil M.
Four Js
Posts: 21


« Reply #4 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
.
Posts: 20


« Reply #5 on: March 24, 2009, 07:30:27 am »


 Hi Neil,

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

Thanks
Bothwell
Neil M.
Four Js
Posts: 21


« Reply #6 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.

* mkper.zip (8.27 KB - downloaded 1264 times.)
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines