Pages: 1
Print
Author Topic: Extract all XFT source code  (Read 435 times)
ChrisTMH
Member

Posts: 16


« on: October 21, 2016, 05:13:54 AM »

Hello,

We have a lot of forms and we would like to dump all source code, so that a code review can take place.

Up to now we have gone into each XFT, gone through each object and copied and pasted the source code by hand, but this takes a lot of time.

Is there a quicker way to do this?

Cheers
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2445



WWW
« Reply #1 on: October 21, 2016, 05:08:56 PM »

There isn't anything included with the standard XMetaL Developer tools, and the XFT file format is binary so I don't think any 3rd party tools will be able to extract anything meaningful from them.

I'm attaching a modified version of the xflayout.exe that includes a view that displays all code from all events on all objects as a single listing.

This was built for internal use only, it is buggy, and we don't plan on releasing anything like this officially at the moment, so do not use this version for creating or editing XFT. You can use it for copying existing code to some other tool. There is no Ctrl+A, so you need to drag to select all the code but this is still far easier than using xflayout.exe if you have multiple objects or events.

1) Copy the EXE to your machine.
2) Launch the EXE and acknowledge Windows security warnings, if any.
3) Use this version of the tool to open an XFT as you would with the standard xflayout.exe tool.
4) Click the "View Script" button, or select View > Script Editor, or press Ctrl+T.
5) At the top of this version of the Script Editor there are 4 grey buttons. Use the 4th one to view all the code.

* XFLayout_AllScriptView.zip (1055.35 KB - downloaded 34 times.)
Logged
ChrisTMH
Member

Posts: 16


« Reply #2 on: October 25, 2016, 06:50:31 AM »

There isn't anything included with the standard XMetaL Developer tools, and the XFT file format is binary so I don't think any 3rd party tools will be able to extract anything meaningful from them.

I'm attaching a modified version of the xflayout.exe that includes a view that displays all code from all events on all objects as a single listing.

This was built for internal use only, it is buggy, and we don't plan on releasing anything like this officially at the moment, so do not use this version for creating or editing XFT. You can use it for copying existing code to some other tool. There is no Ctrl+A, so you need to drag to select all the code but this is still far easier than using xflayout.exe if you have multiple objects or events.

1) Copy the EXE to your machine.
2) Launch the EXE and acknowledge Windows security warnings, if any.
3) Use this version of the tool to open an XFT as you would with the standard xflayout.exe tool.
4) Click the "View Script" button, or select View > Script Editor, or press Ctrl+T.
5) At the top of this version of the Script Editor there are 4 grey buttons. Use the 4th one to view all the code.

Great, thanks again Derek. You've saved us some RSI pain.
Logged
Pages: 1
Print
Jump to: