General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Extract all XFT source code

  • ChrisTMH

    Extract all XFT source code

    Participants 1
    Replies 2
    Last Activity 6 years, 5 months ago

    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

    Reply

    Derek Read

    Reply to: Extract all XFT source code

    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.

    Reply

    ChrisTMH

    Reply to: Extract all XFT source code

    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.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support