Jump to content

MiddleRepetitions CF


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

Recommended Posts

 /*

MiddleRepetitions function

Author

*COMMENT Visual Realisation

Format

MiddleRepetitions ( repeatingField ; startRepetition; endRepetition )

Parameters

repeatingField - any repeating field, or an expression that returns a reference to a repeating field.

startRepetition - any numeric expression or field containing a number

endRepetition - any numeric expression or field containing a number

Data type returned

text

Description

Returns the values in specified repetitions of repeatingField, starting with startRepetition and ending with endRepetition (inclusive).

Returned values are text items followed by carriage returns.

*/

GetRepetition ( repeatingField ; startRepetition ) & "

Link to comment
Share on other sites

  • 9 months later...

Hi comment

you know that I like all your post and that I think you are a genius !

So please take this my post as a little suggestion !

With a very small modification to this beautifull CF, we end up with no extra carriage return.

This is the code:




GetRepetition ( repeatingField ; startRepetition ) & 

If ( 

(startRepetition+1 ) <= endRepetition;

"¶" & MiddleRepetitions ( repeatingField ; startRepetition +1; endRepetition ) 

)



Link to comment
Share on other sites

This topic is 6806 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.