01-07-2006 04:29 AM
01-09-2006 12:49 AM
Hi,
The only way is to get the full path and strip the sequencefile filename and extension.
Regards
Ray Farmer
02-14-2012 11:04 AM
I know this thread is a few years old but I thought I would append to it for the bennifit of anyone else looking for this specific answer, like I was.
In your property loader setup, on the source tab, select "Use Expression To Specify File" and type in:
Left(ThisContext.RunState.SequenceFile.Path, Find( ThisContext.RunState.SequenceFile.Path, "\\",0,False,True )) + "\\Limits.txt"
Where Limits.txt is whatever file name you want to use and the properity loader will look for the file in the same directory as the loaded sequence file.
Cheers
12-02-2016 03:46 AM
Hello,
10 years later...
an I get the code to read "RunState.SequenceFile.Path" please ?
I did this, but I get an error saying that the variable SequenceFile didn't exist :
TS_PropertyExists(SeqContext, &errorInfo, "RunState.ThisContext.SequenceFile.Path", 0, &propertyExists); if (propertyExists) { TS_SequenceGetName (SeqContext, &errorInfo, &sequenceName); TS_PropertyGetValString(SeqContext, &errorInfo, "RunState.ThisContext.SequenceFile.Path", 0, &stringVal); }