- Timestamp:
- Feb 3, 2009 3:57:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/WriteModelData_v40.ipf
r421 r472 56 56 end 57 57 58 // always asks for a file name 58 59 Function fWriteModelData(xwave,ywave,delim,term) 59 60 Wave xwave,ywave … … 61 62 62 63 String formatStr="",fullpath="" 63 Variable refnum 64 Variable refnum,dialog=1 65 64 66 //setup delimeter and terminator choices 65 67 If(cmpstr(delim,"tab")==0) … … 80 82 Endif 81 83 82 Open/D/T="????" refnum as NameofWave(ywave)+".txt" //doesn't open file 83 If(cmpstr(S_filename,"")==0) 84 //user cancel, don't write out a file 85 Close/A 86 Abort "no data file was written" 84 if(dialog) 85 PathInfo/S catPathName 86 fullPath = DoSaveFileDialog("Save data as",fname=NameofWave(ywave)+".txt") 87 If(cmpstr(fullPath,"")==0) 88 //user cancel, don't write out a file 89 Close/A 90 Abort "no data file was written" 91 Endif 92 //Print "dialog fullpath = ",fullpath 87 93 Endif 88 fullpath=S_filename94 89 95 Open refnum as fullpath 90 96
Note: See TracChangeset
for help on using the changeset viewer.