Ignore:
Timestamp:
Sep 7, 2007 4:11:17 PM (15 years ago)
Author:
srkline
Message:

Added a more graceful abort if the user cancels from the "GetSlope?" prompt

Added a report generator to the WrapperPanel?. If checked, it will generate a notebook with useful information and graph. If save is also checked, two files will be saved, the notebook, and a PNG of the graph. If save is generated without selecting "Report", nothing happens.

No changes to GaussUtils? (removed ThreadSafe? declarations from prototypes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Analysis/branches/ajj_23APR07/IGOR_Package_Files/Put in User Procedures/SANS_Models_v3.00/USANS_SlitSmearing.ipf

    r145 r160  
    3838 
    3939        Variable/G USANS_m = EnterSlope() 
    40  
     40        if(USANS_m == 999) 
     41                Killwaves/Z $(basestr+"_res") 
     42                return(1)               //error 
     43        endif 
    4144        Variable tref = startMSTimer 
    4245        print "Calculating W1..." 
     
    6265        DoPrompt "Enter Slope", slope 
    6366                If (V_Flag)  
    64                         return -1 
     67                        return (999)            //return a bogus slope if the user canceled 
    6568                Endif    
    6669        print "slope=", slope 
Note: See TracChangeset for help on using the changeset viewer.