The program I'm writing is going to parse a file and extract certain data and then sync 2 files (attention and heart rate).
here is the string causing the problem:
Look 1 (Center) -- Start Time: 0.2 sec, End Time: 2.6, Duration: 2.4 sec
Yes, the spaces in the front are standard, and there are 15, I used word and displayed hidden characters.
/edit - there ARE 15 leading spaces, it doesn't show it though...
Here is the code causing the problem:
I need to extract the "0.2" from the string, and place it into an array, however, it tosses an error, and while debugging, siStartLk(iTrialctr, iLkctr) shows siStartLk(iTrialctr, iLkctr) = <Subscript out of range>. Where iTrialctr and iLkctr are both 1 (first trial, first look, so it essentially gets caught instantly). I've checked and counted the indexes correctly, I THINK.
When the program breaks these are the following values:
iStartLoc = 38 (index of "S") (the + 12 gives 50, '0' in '0.2')
iTimeLen = 3 (which it should be, '0.2')
iCommaALoc = 57 (-5, is '2' in '0.2'
Am I missing something?
Bookmarks