Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Does anyone know of a way to serially increment text?

For example, if a field contains the value of "A", incrementing it would result in "B". A value of "B" would increment to "C", etc.

I haven't found any built-in text functions to handle this, and would like to avoid having a table to store replacement values.

Posted

What increments the field: script, another field?

What happens when you reach 'Z', start over at 'A'?

Posted

It would increment via script. It is not expected that it would need to increment beyond "Z".

Since I needed to get something done pretty quickly, I ended up using a related table to store replacement values. IE: the original table only stores a number, but the related table has an alpha value for each number. Not the most elegant solution, but it works.

I'd still ike to know if there's a way to increment text via script, though.

Posted

Use a serial number field like normal and a calculation for the "Serail Text"


MySerialText = Middle ("ABCDEFGHIJKLMNOPQRSTUVWXYZ" ; MySerialNUMBER;1)

Posted

and you could get away from the use of a serial field if you use the position() function to find where your current letter is in the string of letters then just get the letter from the next position.

Don

Posted

"It is not expected that it would need to increment beyond "Z"."

Famous last words.

I'd be working out now what to do when this condition eventuates.

Posted

"It is not expected that it would need to increment beyond "Z"."

Famous last words.

I'd be working out now what to do when this condition eventuates.

http://fmforums.com/forum/showpost.php?post/244248/

Posted

Base 26 conversion would be the ultimate solution! Yes.

This topic is 6369 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.