rivet Posted December 16, 2005 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¶
comment Posted December 16, 2005 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.
rivet Posted December 18, 2005 Author Posted December 18, 2005 that is great I will give it a try - thanks comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now