Jump to content

MergeFields2 ( text ; openBrac ; closeBrac ; counter )


This topic is 6566 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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 by Guest
Link to comment
Share on other sites

This topic is 6566 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.