On the Application menu…
Selective Export to TXA and pick that one Procedure
Open TXA in the Editor
IIRC the first line will be [PROCEDURE] and the next line will have its Name … Or find the Name
Change the Name to the new name
Save TXA
Import the TXA
If you don’t edit the name I think the import warns you and offers a Rename button.
I copy procedures all the time in 11.13505. You could try export your entire APP to TXA, create a new APP from that TXA
Hello,
I have noticed that COPY procedure fails for me too. I am in the habit of copying a procedure before butchering it; i mean adding/restructuring etc…
The copy process ALWAYS fails on procedures that have formulas that were done through the FORMULA tab of the procedure. Deleting them, after adding them manually to the closest embed point works.
This Formula problem came up on Comp.Lang.Clarion 08/24/2021 Subject: Re: Export or Copy of procedure does not contain formulas Clarion 11.0.0.13244. A question from @dave.wilkin was to how to find and remove all the Formulas from an APP.
My suggestion is to edit the templates that generate the Formulas code to add a comment !FMula ProcedureName . The Formulas are generated by #GROUP %ExpandFormula in Standard.TPW and ABGroup.TPW. The template code is below. On the end of a 3 lines I added: !FMula %Procedure
Search the CLW’s for the !FMula. Results will be formula lines with Procedure name.
Open Procedures in the Embeditor and find !FMula
Copy that generated formula code into a nearby logical Embed point
Exit the Embeditor and Compile to be sure the new embed code is correct
Open the Procedure and Delete the Formulas
In Discuss.SV Geoff Bomford of Comformark.com.au attached the below Utility template below. It generates a CSV file with %Procedure,%Formula,%FormulaDescription,%FormulaClass. You could open that in Excel as a work list.
I would probably do both. If your solution is composed of multiple APPs using my way a single Solution build will generate !FMula tokens in every APP. A search for FMula will tell you all the APPs that need fixing. Then in those APPs generate the Utility template.
A further template change would be in %ExpandFormula to add the below message so in the output you would see a warning: #MESSAGE('Formulas were used in ' & %Procedure )