chzboi Posted March 28, 2006 Posted March 28, 2006 This should be real easy but I just cant seem to make this work. All I need is the have the last digit of a field to be trimmed off. So... 123245 123 7654 45433 would look like... 12324 12 765 4543 I've tried various combinations of Right, Replace, Middle, Substitute, etc. functions but no luck. Any Ideas? What am I missing? Any help would be appreciated, Thanks! Tom
Søren Dyhr Posted March 28, 2006 Posted March 28, 2006 You can make an unstored repeating calcfield lets call it "split", with only first repetition shown containing this - I'm here guessing we're handling a 1 NF violation. Let(theWord= MiddleWords ( Extend ( entry ) ; Get ( CalculationRepetitionNumber ) -1; 1 ); Case(Get(CalculationRepetitionNumber)=1; split[2] & "¶" & split[3] & "¶" & split[4] & "¶" & split[5] & "¶" & split[6] & "¶" & split[7] & "¶" & split[8] & "¶" & split[9] & "¶" & split[10]; Left(theWord;Length(theWord)-1))) --sd
comment Posted March 29, 2006 Posted March 29, 2006 If your field is number, and all your numbers are integers, you could also use Div ( number ; 10 ).
chzboi Posted March 29, 2006 Author Posted March 29, 2006 This worked... "Left(mynumber; Length(mynumber)-1 )" Thanks a great deal!!! Tom
Recommended Posts
This topic is 6816 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