cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Display limited string lenght/text of tekstparameter in another parameter

HW_9999718
2-Guest

Display limited string lenght/text of tekstparameter in another parameter

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

Creo 9

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

1 REPLY 1

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.

Top Tags