Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I would like a recursive CF to turn this field entry:

12¶

102¶

22¶

Into this:

003¶

004¶

012¶

102¶

022¶

Posted

Try something like:

LeadifyList ( list )

Let ( [

item = LeftValues ( list ; 1 ) ;

processed = Right ( "000" & Substitute ( item; ¶ ; "" ) ; 3 ) ;

nextList = RightValues ( list ; ValueCount ( list ) - 1 )

] ;

Case ( not IsEmpty ( item ) ; processed & ¶ )

&

Case ( not IsEmpty ( nextList ) ; LeadifyList ( nextList ) )

)

It could be simplified a bit by using the new GetValue () function, but this way it's compatible with v.7.

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