Ignore:
Timestamp:
Jun 10, 2016 3:40:55 PM (7 years ago)
Author:
srkline
Message:

A number of simple fixes to make the macros compatible with Igor 7, and in some places back-compatible with Igor 6. There were only a few instances where the IgorVersion? was checked, so it does not caues a huge disruption.

File:
1 edited

Legend:

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

    r999 r1001  
    5656         
    5757        if(cmpstr("Macintosh",IgorInfo(2)) == 0) 
    58                 String/G root:Packages:NIST:gAngstStr = num2char(-127) 
     58                if(IgorVersion() >= 7) 
     59                        String/G root:Packages:NIST:gAngstStr = num2char(8491) 
     60                else 
     61                        String/G root:Packages:NIST:gAngstStr = num2char(-127) 
     62                endif 
    5963//              Variable/G root:myGlobals:gIsMac = 1 
    6064        else 
    6165                //either Windows or Windows NT 
    62                 String/G root:Packages:NIST:gAngstStr = num2char(-59) 
     66                if(IgorVersion() >= 7) 
     67                        String/G root:Packages:NIST:gAngstStr = num2char(8491) 
     68                else 
     69                        String/G root:Packages:NIST:gAngstStr = num2char(-59) 
     70                endif 
    6371//              Variable/G root:myGlobals:gIsMac = 0 
    6472                //SetIgorOption to keep some PC's (graphics cards?) from smoothing the 2D image 
Note: See TracChangeset for help on using the changeset viewer.