- Timestamp:
- Apr 9, 2010 4:30:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/NCNR_Utils.ipf
r670 r680 1343 1343 return(newList) 1344 1344 End 1345 1346 // Return the filename that represents the previous or next file. 1347 // Input is current filename and increment. 1348 // Increment should be -1 or 1 1349 // -1 => previous file 1350 // 1 => next file 1351 Function/S GetPrevNextRawFile(curfilename, prevnext) 1352 String curfilename 1353 Variable prevnext 1354 1355 String filename 1356 1357 //get the run number 1358 Variable num = GetRunNumFromFile(curfilename) 1359 1360 //find the next specified file by number 1361 fileName = FindFileFromRunNumber(num+prevnext) 1362 1363 if(cmpstr(fileName,"")==0) 1364 //null return, do nothing 1365 fileName = FindFileFromRunNumber(num) 1366 Endif 1367 1368 print "in FU "+filename 1369 1370 Return filename 1371 End
Note: See TracChangeset
for help on using the changeset viewer.