- Timestamp:
- Jun 18, 2018 1:12:25 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Utilities_General.ipf
r1105 r1107 434 434 435 435 Variable i,val 436 String filename,tmp,curFileName 436 String filename,tmp,curFileName,str 437 437 //take the currently displayed RAW file 438 438 SVAR oldName = root:Packages:NIST:VSANS:Globals:gLastLoadedFile 439 439 oldname = V_RemoveAllSpaces(oldname) // 440 440 curFileName = oldName 441 // print oldName442 441 443 442 filename = oldname 444 // for (i = 0; i < abs(increment); i += 1) 445 // filename = GetPrevNextRawFile(filename,increment/abs(increment)) 446 // endfor 443 447 444 i = 1 448 445 val = increment 449 446 do 450 // print filename,val 451 filename = V_GetPrevNextRawFile(filename,val) 452 // print "new= ",filename 453 447 454 448 val = i*increment 449 filename = V_GetPrevNextRawFile(oldName,val) 450 451 // printf "i=%d, file=%s\r",i,filename 452 453 tmp = ParseFilePath(0, filename, ":", 1, 0) 454 455 455 i+=1 456 tmp = ParseFilePath(0, filename, ":", 1, 0) 457 458 // print val,strlen(tmp),strlen(oldname) 459 // print cmpstr(tmp,oldname) 460 461 if(strlen(tmp) == 0) //in some cases, a null string can be returned - handle gracefully 462 return(0) 463 endif 464 465 while( (cmpstr(tmp,curFileName) == 0) && i < 11) 466 // print filename 456 while( strlen(tmp) == 0 && i < 11) 457 458 459 if(strlen(tmp) == 0) //in some cases, a null string can be returned - handle gracefully 460 return(0) 461 endif 467 462 468 463 // display the specified RAW data file … … 517 512 //find the next specified file by number 518 513 fileName = V_FindFileFromRunNumber(num+prevnext) 519 520 if(cmpstr(fileName,"")==0)521 //null return, do nothing522 fileName = V_FindFileFromRunNumber(num) //returns the full path, not just curFileName523 Endif524 514 525 515 Return filename
Note: See TracChangeset
for help on using the changeset viewer.