12-23-2015 08:37 AM
Hi, I was wondering if there's a way to programmatically change the name (rename) of a Sequence in a Sequence File. Thanks in advance !!
Solved! Go to Solution.
12-23-2015 11:41 AM
You should be able to with this method: (assuming the sequence you want to change in in the same file)
ThisContext.SequenceFile.GetSequenceByName(Parameters.OldName).Name=Parameters.NewName
This does not validate it works properly though. You really should verify the new name does not already exist and that the name is valid (contain only letters, numbers, and underscores. Name cannot contain spaces, start with a number, or be empty. Additionally, t name cannot be "Value")
"I won't be wronged. I won't be insulted. I won't be laid a-hand on. I don't do these things to other people, and I require the same from them." John Bernard Books
12-23-2015 12:30 PM
Thanks a lot !! worked like a charm.