raymanj Posted November 16, 2004 Posted November 16, 2004 I am not sure what fm function I would use to accomplish the following. I have a text field 'list' containing a list of numbers, separated by returns, that can be as long or short. 5 2 98 34 21 56 34 10 6 I need to make a calculation that will go to one of these numbers in the list replace it with something and then any numbers below the one I changed will be erased from the list. Example: I want to replace the number 21 in the list with 14. So the new list will look like: 5 2 98 34 14 I know how to go to the number and replace it but how do I erase all the number below.
transpower Posted November 16, 2004 Posted November 16, 2004 Use LeftValues, like: Let ( [newlist = LeftValues (list ; N - 1 ) ]; // N = number of values to keep newlist &
Ugo DI LUCA Posted November 16, 2004 Posted November 16, 2004 Here ya go. Let ( [ xo =oldValue; xn = newvalue; E = Left(list;Position(list & "
raymanj Posted November 16, 2004 Author Posted November 16, 2004 Thanks that worked, I was looking at the problem from the wrong end. Trying to delete what was below instead of just saving what I needed. Thanks again
Recommended Posts
This topic is 7315 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