Skip to main content
3-Newcomer
July 17, 2024
Solved

Display limited string lenght/text of tekstparameter in another parameter

  • July 17, 2024
  • 1 reply
  • 790 views

I want to assign only the first 7 characters of parameter (string) to another parameter. How can I do that via relations?.

Creo 9

Best answer by KenFarley

Use the EXTRACT function.

Something like

stringResult = EXTRACT ( stringSource, 1, 7 )

You should look into the syntax for this relation function.

This should work as long as the string being used as a source is at least 7 characters long.

1 reply

KenFarley21-Topaz IIAnswer
21-Topaz II
July 17, 2024

Use the EXTRACT function.

Something like

stringResult = EXTRACT ( stringSource, 1, 7 )

You should look into the syntax for this relation function.

This should work as long as the string being used as a source is at least 7 characters long.