Ignore:
Timestamp:
Sep 8, 2016 10:14:58 AM (6 years ago)
Author:
srkline
Message:

adding conditional compile checks to be sure that the XOPs are present for the version of Igor that is running. If XOPs are not present, user is notified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/ModelPicker/SANSModelPicker_v40.ipf

    r1001 r1010  
    4545                Procedure_List() 
    4646//              AutoPositionWindow/M=1/R=WrapperPanel Procedure_List            //keep it on-screen 
     47 
    4748        endif 
    4849End 
     
    575576Function FileList_InsertButtonProc(ctrlName) : ButtonControl 
    576577        String ctrlName 
     578 
     579// add a check here to warn users if the XOP functions are not present 
     580#if exists("SphereFormX") 
     581        // XOP present, all is OK 
     582#else 
     583        // XOP is not present, warn the user to re-run the installer 
     584        //check the 32-bit or 64-bit 
     585        String igorKindStr = StringByKey("IGORKIND", IgorInfo(0) ) 
     586        String alertStr 
     587        if(strsearch(igorKindStr, "64", 0 ) != -1) 
     588                alertStr = "The SANSAnalysis XOP is not installed for the 64-bit version of Igor. " 
     589                alertStr += "It is recommended that you re-run the NCNR Installer. Click YES to stop and " 
     590                alertStr += "do the installation, or NO to continue with the analysis." 
     591        else 
     592                alertStr = "The SANSAnalysis XOP is not installed for the 32-bit version of Igor. " 
     593                alertStr += "It is recommended that you re-run the NCNR Installer. Click YES to stop and " 
     594                alertStr += "do the installation, or NO to continue with the analysis." 
     595        endif 
     596        DoAlert 1,alertStr       
     597 
     598        if(V_flag == 1) 
     599                // get out gracefully 
     600                SetDataFolder root: 
     601                return(0) 
     602        endif 
     603 
     604#endif 
    577605         
    578606        //loop through the selected files in the list... 
Note: See TracChangeset for help on using the changeset viewer.