May 3, 200619 yr Name & Parameters: [color:red][big] MergeFields2 ( text ; openBrac ; closeBrac ; counter ) [/big] Description: Works with MergeField1 to replace "Merge Fields" in a text with data from fields. (See full description in MergeFields1) Sample Input: Results: Recursive: yes Formula: Case ( counter < PatternCount ( text ; openBrac ); GetField ( Middle ( text ; Position (text ; openBrac ; 1 ; counter ) + Length ( openBrac ); Position ( text ; closeBrac ; 1 ; counter ) - Position (text ; openBrac ; 1 ; counter ) - Length ( openBrac ))) & Middle ( text ; Position ( text ; closeBrac ; 1 ; counter ) + Length ( closeBrac ) ; Position ( text ; openBrac ; 1 ; counter + 1 ) - Position ( text ; closeBrac ; 1 ; counter ) - Length ( closeBrac ) ) & MergeFields2 ( text ; openBrac ; closeBrac ; counter +1) ) Required Functions: MergeField1 Author(s): Jake Sterling Date: 05/03/06 Credits: Disclaimer: FM Forums does not endorse or warrantee these files are fit for any particular purpose. Do not post or distribute files without written approval from the copyright owner. All files are deemed public domain unless otherwise indictated. Please backup every file that you intend to modify. Edited May 4, 200619 yr by Guest
Create an account or sign in to comment