Devin Posted May 25, 2016 Posted May 25, 2016 Why am I getting a return character add to the end of value returned using this calc. This only happens when the shortList = 1 part. Let ( shortList = FilterValues ( "Shipped¶Not Shipped¶Not Fully Shipped" ; List ( LineItems::ShippedStatus ) ) ; Case ( ValueCount ( shortList ) = 1 ; shortList ; not IsEmpty ( FilterValues ( shortList ; "Shipped" ) ) ; "Not Fully Shipped" ) ) I went ahead and changed to move the return. But maybe their was a better way. ValueCount ( shortList ) = 1 ; Substitute ( shortList ; "¶" ; "" ) ;
Steve Martino Posted May 25, 2016 Posted May 25, 2016 Does this work? ValueCount ( shortList ) = 1 ; trim( shortList ) ;
bruceR Posted May 25, 2016 Posted May 25, 2016 Use GetValue. The result is a single line without a return at the end. The other values functions always have a return at the end. ValueCount ( shortList ) = 1 ; GetValue ( shortList ;1 ) ;
Devin Posted May 26, 2016 Author Posted May 26, 2016 13 hours ago, BruceR said: ValueCount ( shortList ) = 1 ; GetValue ( shortList ;1 ) ; This works great.. Thanks for the tip.
Recommended Posts
This topic is 3171 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