Hi Marek,
you're logic is a little out - in your example code you are testing the error, not the bool "myTempVBool"
so something more like
(TS_SeqFileSequenceNameExists(seqFile,NULL,sub SequenceName,&myTempVBool));
if(myTempVBool == VFALSE)
{
//sub sequence doesn't exist... add it
}
else
{
//subsequence name already taken, change the name
}
NOTE :
You need to rename the object BEFORE you try to insert it. Have a look at the help file on
SequenceFile.InsertSequence where it says about the sequence must not already exist in the file. (Also don't forget to release the clone object when you've finished)
Have a look at your other question on "How do I change the name of a sub sequence using CVI" , I've included an example there which shoul
d help you out.
S.
// it takes almost no time to rate an answer