rivet Posted December 16, 2005 Share Posted December 16, 2005 I would like a recursive CF to turn this field entry: 3¶ 4¶ 12¶ 102¶ 22¶ Into this: 003¶ 004¶ 012¶ 102¶ 022¶ Link to comment Share on other sites More sharing options...
comment Posted December 16, 2005 Share Posted December 16, 2005 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. Link to comment Share on other sites More sharing options...
rivet Posted December 18, 2005 Author Share Posted December 18, 2005 that is great I will give it a try - thanks comment Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6703 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 accountSign in
Already have an account? Sign in here.
Sign In Now