Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7315 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

Use LeftValues, like:

Let ( [newlist = LeftValues (list ; N - 1 ) ]; // N = number of values to keep

newlist &

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.